anytype_delete_object
Delete or archive objects in Anytype by specifying space and object IDs to remove unwanted content from your workspace.
Instructions
Elimina (archiva) un objeto
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"space_id": "<space_id>",
"object_id": "<object_id>"
},
"name": "anytype_delete_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | ID del espacio | |
| object_id | Yes | ID del objeto |
Implementation Reference
- src/handlers/objects.ts:279-285 (handler)The handler function that executes the tool logic by sending a DELETE request to the Anytype API endpoint to archive/delete the specified object.
export async function handleDeleteObject(args: any) { const { space_id, object_id } = args; const response = await makeRequest(`/v1/spaces/${space_id}/objects/${object_id}`, { method: 'DELETE', }); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; } - src/tools/objects.ts:80-91 (schema)The input schema definition for the anytype_delete_object tool, specifying required space_id and object_id parameters.
{ name: 'anytype_delete_object', description: 'Elimina (archiva) un objeto', inputSchema: { type: 'object', properties: { space_id: { type: 'string', description: 'ID del espacio' }, object_id: { type: 'string', description: 'ID del objeto' }, }, required: ['space_id', 'object_id'], }, }, - src/index.ts:132-133 (registration)The switch case registration in the MCP server that routes calls to the 'anytype_delete_object' tool to the handleDeleteObject handler.
case 'anytype_delete_object': return await handleDeleteObject(args);