From fe0a1bed55a19e21078f8ce73d2c6039506a1c37 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 1509c0068..87c3cce4f 100644 --- a/sda/cmd/api/api.go +++ b/sda/cmd/api/api.go @@ -290,10 +290,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)