Skip to main content
Glama
dweigend

Joplin MCP Server

by dweigend

delete_note

Remove a note from Joplin by specifying its ID, with an option to delete permanently or send to trash.

Instructions

Delete a note from Joplin.

Args:
    note_id: ID of note to delete
    permanent: If True, permanently delete the note

Returns:
    Dictionary containing the operation status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
note_idYes
permanentNo

Implementation Reference

  • MCP tool handler for delete_note: calls JoplinAPI.delete_note and returns success/error response.
    @mcp.tool()
    async def delete_note(note_id: str, permanent: bool = False) -> Dict[str, Any]:
        """Delete a note from Joplin.
        
        Args:
            note_id: ID of note to delete
            permanent: If True, permanently delete the note
        
        Returns:
            Dictionary containing the operation status
        """
        if not api:
            return {"error": "Joplin API client not initialized"}
        
        try:
            api.delete_note(note_id, permanent=permanent)
            return {
                "status": "success",
                "message": f"Note {note_id} {'permanently ' if permanent else ''}deleted"
            }
        except Exception as e:
            logger.error(f"Error deleting note: {e}")
            return {"error": str(e)}
  • JoplinAPI helper method that sends DELETE request to Joplin server endpoint for the note.
    def delete_note(self, note_id: str, permanent: bool = False) -> None:
        """Delete a note.
    
        Args:
            note_id: ID of note to delete
            permanent: If True, permanently delete the note
        """
        endpoint = f"notes/{note_id}"
        if permanent:
            endpoint += "?permanent=1"
        self._make_request("DELETE", endpoint)

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/dweigend/joplin-mcp-server'

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