From 353261a4f16b83a433859959db7b267f85a01575 Mon Sep 17 00:00:00 2001 From: MalinAhlberg Date: Fri, 29 Nov 2024 08:52:02 +0100 Subject: [PATCH] [api] rephrase comment --- sda/cmd/api/api.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sda/cmd/api/api.go b/sda/cmd/api/api.go index e7cda7652..aaaf6e20c 100644 --- a/sda/cmd/api/api.go +++ b/sda/cmd/api/api.go @@ -272,10 +272,8 @@ func ingestFile(c *gin.Context) { c.Status(http.StatusOK) } -// The deleteFile function will take the user id and the file id -// because the user id won't be in the path of the file in the future -// therefore we need to make the list files, get the file id and then -// call the delete file +// The deleteFile function deletes files from the inbox and marks them as +// discarded in the db. Files are identified by their ids and the user id. func deleteFile(c *gin.Context) { inbox, err := storage.NewBackend(Conf.Inbox)