From a99189b31a0236ad8597a3a692122b573b3629c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Tue, 17 Feb 2026 07:34:34 +0100 Subject: [PATCH] add remove folder in delete workspace --- handlers/workspace.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/handlers/workspace.go b/handlers/workspace.go index 5b23d21..3f2ab9a 100644 --- a/handlers/workspace.go +++ b/handlers/workspace.go @@ -160,6 +160,14 @@ func (aH *AccessHandler) DeleteWorkspace(c *gin.Context) { return w != nil && w.Name == workspace.Name }) } + + // crearemove folder + err = os.RemoveAll(workspace.Uuid.String()) + if err != nil { + aH.logger.Error("DeleteWorkspace", err) + c.JSON(http.StatusBadRequest, models.NewJsonErrorResponse(err)) + return + } } c.JSON(http.StatusOK, gin.H{