MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / ClearRecycleBinFile

Method ClearRecycleBinFile

agent/app/api/v2/recycle_bin.go:63–69  ·  view source on GitHub ↗

@Tags File @Summary Clear RecycleBin files @Accept json @Success 200 @Security ApiKeyAuth @Security Timestamp @Router /files/recycle/clear [post] @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"清空回收站","formatEN":"清空回收站"}

(c *gin.Context)

Source from the content-addressed store, hash-verified

61// @Router /files/recycle/clear [post]
62// @x-panel-log {"bodyKeys":[],"paramKeys":[],"BeforeFunctions":[],"formatZH":"清空回收站","formatEN":"清空回收站"}
63func (b *BaseApi) ClearRecycleBinFile(c *gin.Context) {
64 if err := recycleBinService.Clear(); err != nil {
65 helper.InternalServer(c, err)
66 return
67 }
68 helper.Success(c)
69}
70
71// @Tags File
72// @Summary Get RecycleBin status

Callers

nothing calls this directly

Calls 1

ClearMethod · 0.65

Tested by

no test coverage detected