delete_note
Remove a specific note from NotesKeep by providing its ID to manage your note collection effectively.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the note to delete |
Implementation Reference
- src/index.ts:198-223 (handler)The delete_note tool registration and its handler implementation, which uses apiRequest to delete a note by ID.
server.tool( "delete_note", { id: z.number().describe("ID of the note to delete"), }, async ({ id }) => { try { await apiRequest(`/api/notes/${id}`, { method: "DELETE" }); return { content: [{ type: "text", text: `Note ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting note: ${error}` }], isError: true }; } } );