delete_label
Remove a label from your NotesKeep notes to maintain organized note collections by specifying the label ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the label to delete |
Implementation Reference
- src/index.ts:349-370 (handler)The 'delete_label' tool is registered and implemented directly in src/index.ts, handling the DELETE request to the labels API.
server.tool( "delete_label", { id: z.number().describe("ID of the label to delete"), }, async ({ id }) => { try { await apiRequest(`/api/labels/${id}`, { method: "DELETE" }); return { content: [{ type: "text", text: `Label ${id} deleted successfully!` }] }; } catch (error) { return { content: [{ type: "text", text: `Error deleting label: ${error}` }], isError: true