REST API
Delete a file
Deletes the file, the images extracted from it and its search index. Extracted images the note still shows are kept as standalone images, so the note doesn't change. If preserving those images would exceed a file or storage quota, nothing is deleted. An image file is also removed from the note's content.
Required scopes: files:delete
AuthorizationBearer <token>
In: header
Path Parameters
fileId*string
Note file id, scoped to the key's user.
Match
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/files/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "data": { "id": "3c2b1a09-8f7e-4d6c-9b5a-4e3d2c1b0a9f", "deleted": true }}