DELETE /files/{file_id}
Delete a file.
A foreign, missing, or already-deleted id is an indistinguishable 404, so ids can't be enumerated. Sandbox tokens get a 403 (a sandbox token sits next to potentially-untrusted code and must not be able to destroy the account's files — uploading is fine, destruction is not); API keys and user tokens may delete.
curl -X DELETE "https://api.ellipsis.dev/v1/files/{file_id}" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY"import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.files.delete("...")
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.files.delete('...');
console.log(result);Request
file_idstringrequired