Path parameters
-
id
string Required Format should match the following pattern:
^file-
.
DELETE
/files/{id}
curl \
--request DELETE 'https://api.kuaichuti.net/v1/files/{id}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "file-67d79d01e88e5d4493374926",
"object": "file",
"deleted": true
}
Response examples (404)
{
"error": {
"type": "invalid_request_error",
"message": "No such File object: invalid"
}
}