Skip to content

DELETE /api/v1/trash

DELETE/api/v1/trash

清空回收站(永久删除全部回收站资产)

useroperationId: trashEmpty

请求示例

cURL
curl -X DELETE 'http://localhost:8080/api/v1/trash' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer <JWT>'
JavaScript
const res = await fetch('http://localhost:8080/api/v1/trash', {
  method: 'DELETE',
  headers: {
    'Accept': 'application/json',
    'Authorization': 'Bearer <JWT>'
  },
});
const data = await res.json();
Python
import requests

res = requests.delete(
    'http://localhost:8080/api/v1/trash',
    headers={'Accept': 'application/json', 'Authorization': 'Bearer <JWT>'}
)
print(res.json())

响应

200成功

application/json

{
  "type": "object",
  "description": "通用响应包装",
  "properties": {
    "code": {
      "type": "string",
      "example": "ok"
    },
    "message": {
      "type": "string",
      "example": "ok"
    },
    "data": {}
  }
}

在线调试

在线调试
凭证仅保存在当前页面内存中
自定义请求 Header