Delete File
curl --request DELETE \
--url https://api.moonshot.ai/v1/files/{file_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"object": "file",
"deleted": true
}Delete File
Deletes a previously uploaded file.
DELETE
/
v1
/
files
/
{file_id}
Delete File
curl --request DELETE \
--url https://api.moonshot.ai/v1/files/{file_id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"object": "file",
"deleted": true
}Usage Example
Usage Example
client.files.delete(file_id=file_id)
Authorizations
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.
Path Parameters
The file identifier
Was this page helpful?
⌘I