// RemoveFile implementation for Google Cloud Storage Data Backend
RemoveFile implementation for Google Cloud Storage Data Backend
// RemoveFile implementation for Google Cloud Storage Data Backend
func (sb *Backend) RemoveFile(file *common.File) (err error) {
	err = sb.initClient()
	if err != nil {
		err = fmt.Errorf("unable to get gcs client: %s", err)
		return
	}
	err = sb.client.Bucket(sb.Config.Bucket).Object(sb.getFileID(file.UploadID, file.ID)).Delete(context.Background())
	if err != nil {
		if err == storage.ErrObjectNotExist {
			err = nil
		}
	}
	return
}
func ( sb * Backend ) RemoveFile ( file * common . File ) ( err error ) { err = sb . initClient ( ) if err != nil { err = fmt . Errorf ( " " , err ) return } err = sb . client . Bucket ( sb . Config . Bucket ) . Object ( sb . getFileID ( file . UploadID , file . ID ) ) . Delete ( context . Background ( ) ) if err != nil { if err == storage . ErrObjectNotExist { err = nil } } return }
RemoveFile implementation for Google Cloud Storage Data Backend
RemoveFile implementation for Google Cloud Storage Data Backend
// Get the GCS client // Delete the object