You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: remove_file.go
    path of file: ./repos/plik/server/handlers
    
    the code of the file until where you have to start completion: package handlers

import (
	"fmt"
	"github.com/root-gg/plik/server/common"
	"net/http"

	"github.com/root-gg/plik/server/context"
)

// RemoveFile remove a file from an existing upload
func RemoveFile(ctx *context.Context, resp http.ResponseWriter, req *http.Request) {
	//
    
func purge(ctx *context.Context, file *common.File) (err error) {
	err = ctx.GetMetadataBackend().RemoveFile(file)
	if err != nil {
		return fmt.Errorf("unable to remove file %s from upload %s : %s", file.ID, file.UploadID, err)
	}

	if file.Status != common.FileRemoved {
		return nil
	}

	err = ctx.GetDataBackend().RemoveFile(file)
	if err != nil {
		return fmt.Errorf("unable to delete file %s from upload %s : %s", file.ID, file.UploadID, err)
	}

	err = ctx.GetMetadataBackend().UpdateFileStatus(file, common.FileRemoved, common.FileDeleted)
	if err != nil {
		return fmt.Errorf("unable to update file status for deleted file %s from upload %s : %s", file.ID, file.UploadID, err)
	}

	return nil
}