delete_category
Remove a category folder from Nextcloud Notes to organize your notes by deleting unwanted or obsolete categories.
Instructions
Delete a category folder inside Notes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_name | Yes |
Implementation Reference
- nextcloud_notes_mcp/server.py:218-228 (handler)The delete_category tool handler function, decorated with @mcp.tool() which handles both definition and registration. It deletes the specified category folder using the WebDAV client.@mcp.tool() def delete_category(category_name: str) -> str: """ Delete a category folder inside Notes. """ full_path = f"Notes/{category_name}" try: client.clean(full_path) # works for folders too except Exception as e: return f"Failed to delete category: {str(e)}" return f"Category deleted successfully: {full_path}"