Skip to main content
Glama
elmapicms

elmapicms-mcp-server

Official
by elmapicms

Delete Entry

delete_entry

Soft-delete content entries by moving them to trash for potential restoration. Specify collection slug and entry UUID to remove items while maintaining recovery options.

Instructions

Soft-delete a content entry (moves to trash). Can be restored from the admin panel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
collection_slugYesThe collection slug
uuidYesThe entry UUID

Implementation Reference

  • The complete delete_entry tool implementation including registration, schema definition, and handler logic. It performs a soft-delete on a content entry by making a DELETE request to /{collection_slug}/{uuid} and returns the result as JSON.
    // ── delete_entry ──────────────────────────────────────────────────
    server.registerTool("delete_entry", {
      title: "Delete Entry",
      description:
        "Soft-delete a content entry (moves to trash). Can be restored from the admin panel.",
      inputSchema: {
        collection_slug: z.string().describe("The collection slug"),
        uuid: z.string().describe("The entry UUID"),
      },
    }, async ({ collection_slug, uuid }) => {
      const result = await client.delete(`/${collection_slug}/${uuid}`);
      return {
        content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
      };
    });

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

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