ConsistlyAPI
Files

Delete a file

Removes the file record and underlying storage object. Resources still referencing the file (icons, fonts, slide assets, brand_checks) will have a dangling pointer — clean those up first or rely on GC for unattached files after 7 days.

DELETE
/files/{id}
AuthorizationBearer <token>

Bearer API key in the form sk_live_…, sk_test_…, or pk_live_…. Keys are issued from the Consistly dashboard and carry product-prefixed scopes.

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X DELETE "https://example.com/files/file_abc..."
{  "id": "string",  "deleted": true}
{  "error": {}}