Delete Entry
delete_entrySoft-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
| Name | Required | Description | Default |
|---|---|---|---|
| collection_slug | Yes | The collection slug | |
| uuid | Yes | The entry UUID |
Implementation Reference
- src/tools/content.ts:166-180 (handler)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) }], }; });