Delete a file
DELETE /projects/:projectid/library/files/:fileid
Permanently remove a file.
Deletes the file, its stored contents and its search entries. This cannot be undone.
Authentication
- Project API key: The credential for everything external. Created in Project Settings, bound to one project, and limited to the scopes it was granted. Format:
proj.<keyId>.<secret>. - Required permission:
library.delete.
Path parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
projectid | string | Yes | - | The project id. |
fileid | string | Yes | - | The file to delete. |
Example request
curl -X DELETE \
-H "Authorization: proj.KEY_ID.SECRET" \
{{BASE_URL}}/projects/{{PROJECT_ID}}/library/files/FILE_ID
Responses
204
Deleted. No body.
403
The key lacks delete permission on the library.