Delete a file
Changed onPermanently delete a file and all associated data.
Requirements:
- Delete permission on the document
- Workspace must allow manual document management (not sync-only)
Public datasets: deleting a public-dataset file requires the instance-admin MANAGE_PUBLIC_DATASET permission. A workspace-scoped API key with read access (company opted in via allow_access_to_public_datasets) can see the file but gets 403, not 404, when attempting to delete it — public datasets are read-only.
Returns 204 (No Content) on success.
Request
- Base URLhttps://api.lighton.ai
- URLhttps://api.lighton.ai/api/v3/files/{id}
- AuthHTTP bearer
Path parameters
A unique integer value identifying this Document.
Response
File deleted successfully (no content returned)
Changes
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- info