diff --git a/japicore/fidRouteHandling.go b/japicore/fidRouteHandling.go index 7d70077..d844b55 100644 --- a/japicore/fidRouteHandling.go +++ b/japicore/fidRouteHandling.go @@ -98,19 +98,22 @@ func DeleteByFidHandler(fileIo *file_io_handler.FileIoHandler, queue *FileIoQueu fid := strings.ReplaceAll(id, "/", "_") fmt.Println(fid) - folder, err := fileIo.DownloadFolder(queue.GetRoot("bulk")) - if err != nil { - jutils.ProcessHttpError("DeleteFile", err, 404, w) - return err - } - - err = fileIo.DeleteTargets([]string{fid}, folder) - if err != nil { - jutils.ProcessHttpError("DeleteFile", err, 500, w) - return err - } - - message := createJsonResponse("Deletion complete") + // TODO - update after deletion by fid is added to jackalgo + + //folder, err := fileIo.DownloadFolder(queue.GetRoot("bulk")) + //if err != nil { + // jutils.ProcessHttpError("DeleteFile", err, 404, w) + // return err + //} + // + //err = fileIo.DeleteTargets([]string{fid}, folder) + //if err != nil { + // jutils.ProcessHttpError("DeleteFile", err, 500, w) + // return err + //} + + //message := createJsonResponse("Deletion complete") + message := createJsonResponse("Deletion Not Implemented") condensedWriteJSON(w, message) return nil }