Skip to main content
Glama
rncz

Nextcloud Notes MCP Server

by rncz

delete_note

Remove a note file from Nextcloud Notes by specifying its filename and optional category, enabling users to delete unwanted notes and manage their note collection.

Instructions

Delete a note file inside Notes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameYes
categoryNo

Implementation Reference

  • The main handler function for the 'delete_note' tool, registered via @mcp.tool() decorator. It constructs the remote path and uses the WebDAV client to delete the note file.
    @mcp.tool()
    def delete_note(filename: str, category: str | None = None) -> str:
        """
        Delete a note file inside Notes.
        """
        full_path = f"Notes/{category}/{filename}" if category else f"Notes/{filename}"
        try:
            client.clean(full_path)
        except Exception as e:
            return f"Failed to delete note: {str(e)}"
        return f"Note deleted successfully: {full_path}"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rncz/nextcloud-notes-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server