add remove folder in delete workspace
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user