当前为2.0版本。官方API后端仅供内部使用!©2026 P.C.T.G All Rights Reserved.
注意:不会影响配置文件[cleanup]段定义的清理策略
[cleanup]
Authorization: Bearer ********************
{ "retention_days": 7, "mode": "all" }
curl --location 'http://127.0.0.1:8000/api/admin/config/clean' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "retention_days": 7, "mode": "all" }'
{ "code": 200, "status": "success", "retention_days": 7, "mode": "all", "deleted": 0 }