anytype_delete_type
Remove an object type from an Anytype workspace by specifying the space and type identifiers.
Instructions
Elimina un tipo de objeto
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | ID del espacio | |
| type_id | Yes | ID del tipo |
Implementation Reference
- src/handlers/types-tags.ts:81-87 (handler)The main handler function that executes the tool by making a DELETE request to the Anytype API endpoint for deleting a type.export async function handleDeleteType(args: any) { const { space_id, type_id } = args; const response = await makeRequest(`/v1/spaces/${space_id}/types/${type_id}`, { method: 'DELETE', }); return { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] }; }
- src/tools/types.ts:66-77 (schema)Defines the tool schema including name, description, and input validation requiring space_id and type_id.{ name: 'anytype_delete_type', description: 'Elimina un tipo de objeto', inputSchema: { type: 'object', properties: { space_id: { type: 'string', description: 'ID del espacio' }, type_id: { type: 'string', description: 'ID del tipo' }, }, required: ['space_id', 'type_id'], }, },
- src/index.ts:156-157 (registration)Registers the handler in the main tool dispatcher switch statement.case 'anytype_delete_type': return await handleDeleteType(args);