🎉 New kimi k2.5 Multi-modal Model released! Now supports multimodal understanding and processing.
cURL
curl --request DELETE \ --url https://api.moonshot.ai/v1/files/{file_id} \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "object": "file", "deleted": true }
Deletes a previously uploaded file.
Usage Example
client.files.delete(file_id=file_id)
The Authorization header expects a Bearer token. Use an MOONSHOT_API_KEY as the token. This is a server-side secret key. Generate one on the API keys page in your dashboard.
The file identifier
Deletion result
Deleted file identifier
"file"
Whether the file was deleted successfully
Was this page helpful?