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{