🎉 Kimi K2.6 has been released with improved long-context coding stability.
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.
curl --request DELETE \
--url https://api.moonshot.ai/v1/files/{file_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"object": "file",
"deleted": true
}Documentation Index
Fetch the complete documentation index at: https://platform.kimi.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
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
Was this page helpful?