删除文件
API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai
软删除文件记录并异步回收对象存储上的实际文件。幂等操作。
Authorization
BearerAuth AuthorizationBearer <token>
API 密钥认证(OpenAI 格式)。在 Authorization 请求头中传入:
Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Path Parameters
id*string
文件 ID(file- 前缀)
Response Body
application/json
application/json
application/json
curl -X delete "https://api.xrtoken.net/v1/files/string"{
"id": "string",
"object": "file",
"deleted": true
}{
"error": "invalid or missing API key",
"type": "auth_error"
}{
"error": "string",
"type": "invalid_request_error"
}