curl --request DELETE \
--url https://api.example.com/api/notes \
--header 'Authorization: <authorization>'{
"message": "<string>",
"data": {
"id": 123,
"title": "<string>",
"data": {},
"description": {},
"ownerId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}Permanently delete a note and all associated data. Only the note owner can delete a note.
curl --request DELETE \
--url https://api.example.com/api/notes \
--header 'Authorization: <authorization>'{
"message": "<string>",
"data": {
"id": 123,
"title": "<string>",
"data": {},
"description": {},
"ownerId": 123,
"createdAt": "<string>",
"updatedAt": "<string>"
},
"error": "<string>"
}curl -X DELETE "https://api.noteverse.com/api/notes?notes_id=123" \
-H "Authorization: Bearer YOUR_AUTH_TOKEN"
{
"message": "Note deleted successfully",
"data": {
"id": 123,
"title": "Deleted Note",
"data": "Content that was deleted",
"description": null,
"thumbnail": null,
"views": 15,
"visibility": "Private",
"createdAt": "2026-03-01T10:30:00.000Z",
"updatedAt": "2026-03-02T14:20:00.000Z",
"ownerId": 42,
"categoryId": null,
"subcategoryId": null
}
}
{
"error": "Invalid or expired token"
}
{
"error": "Error deleting note"
}
{
"error": "Note not found or you don't have permission to delete it"
}