From 3ac7e5e38119e8fb11cb53a180d945e00f829fdc 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)