Skip to content
REST API

Move a note to the trash

DELETE
/notes/{noteId}

The note disappears from every read and stops being searchable. Its files stay, and POST /notes/{noteId}/restore brings it back. The trash is emptied after 30 days.

Required scopes: notes:delete

Authorization

AuthorizationBearer <token>

In: header

Path Parameters

noteId*string

Note 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)$
Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/notes/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "data": {    "id": "3c2b1a09-8f7e-4d6c-9b5a-4f3e2d1c0b9a",    "deleted": true  }}