delete_checklist_item
Remove a specific item from a checklist by providing the checklist ID and item ID.
Instructions
Delete an item from a ClickUp checklist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checklist_id | Yes | The ID of the checklist containing the item | |
| checklist_item_id | Yes | The ID of the checklist item to delete |
Implementation Reference
- src/tools/checklist-tools.ts:149-172 (registration)Registration of the 'delete_checklist_item' tool with Zod schema for checklist_id and checklist_item_id. Calls checklistsClient.deleteChecklistItem.
// Register delete_checklist_item tool server.tool( 'delete_checklist_item', 'Delete an item from a ClickUp checklist.', { checklist_id: z.string().describe('The ID of the checklist containing the item'), checklist_item_id: z.string().describe('The ID of the checklist item to delete') }, async ({ checklist_id, checklist_item_id }) => { try { const result = await checklistsClient.deleteChecklistItem(checklist_id, checklist_item_id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error: any) { console.error('Error deleting checklist item:', error); return { content: [{ type: 'text', text: `Error deleting checklist item: ${error.message}` }], isError: true }; } } ); - src/tools/checklist-tools.ts:157-171 (handler)Handler function for delete_checklist_item that takes checklist_id and checklist_item_id, calls the client method, and returns the result as JSON.
async ({ checklist_id, checklist_item_id }) => { try { const result = await checklistsClient.deleteChecklistItem(checklist_id, checklist_item_id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } catch (error: any) { console.error('Error deleting checklist item:', error); return { content: [{ type: 'text', text: `Error deleting checklist item: ${error.message}` }], isError: true }; } } - The ChecklistsClient.deleteChecklistItem method that performs the actual HTTP DELETE request to /checklist/{checklistId}/checklist_item/{checklistItemId}
/** * Delete a checklist item * @param checklistId The ID of the checklist containing the item * @param checklistItemId The ID of the checklist item to delete * @returns Success message */ async deleteChecklistItem(checklistId: string, checklistItemId: string): Promise<{ success: boolean }> { return this.client.delete(`/checklist/${checklistId}/checklist_item/${checklistItemId}`); } - src/tools/checklist-tools.ts:153-156 (schema)Zod input schema for delete_checklist_item: requires checklist_id (string) and checklist_item_id (string).
{ checklist_id: z.string().describe('The ID of the checklist containing the item'), checklist_item_id: z.string().describe('The ID of the checklist item to delete') },