Delete a note
DELETE
/notes/{query}
const url = 'http://127.0.0.1:7677/notes/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://127.0.0.1:7677/notes/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” query
required
string
Full UUID, 8+ char UUID prefix, or filename
Responses
Section titled “ Responses ”Deleted
Media type application/json
object
data
object
id
required
string format: uuid
title
required
string
Example generated
{ "data": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "title": "example" }}Note not found
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}