delete_element
Remove an element and optionally its associated data files from the DollhouseMCP server. Specify the element name and type to delete personas, skills, templates, agents, memories, or ensembles.
Instructions
Delete an element and optionally its associated data files
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The element name to delete | |
| type | Yes | The element type | |
| deleteData | No | Whether to delete associated data files (if not specified, will prompt) |
Implementation Reference
- src/server/tools/ElementTools.ts:368-368 (handler)The handler function for the 'delete_element' tool, which delegates to the server's deleteElement method with the provided arguments.handler: (args: DeleteElementArgs) => server.deleteElement(args)
- Input schema validation for the delete_element tool arguments: name (string), type (string enum ElementType), optional deleteData (boolean).inputSchema: { type: "object", properties: { name: { type: "string", description: "The element name to delete", }, type: { type: "string", description: "The element type", enum: Object.values(ElementType), }, deleteData: { type: "boolean", description: "Whether to delete associated data files (if not specified, will prompt)", default: undefined, }, }, required: ["name", "type"], },
- TypeScript interface defining the arguments for deleteElement: name, type, optional deleteData.interface DeleteElementArgs { name: string; type: string; deleteData?: boolean; }
- src/server/tools/ElementTools.ts:343-369 (registration)Registration of the 'delete_element' tool within the getElementTools() function's return array, including name, description, schema, and handler.{ tool: { name: "delete_element", description: "Delete an element and optionally its associated data files", inputSchema: { type: "object", properties: { name: { type: "string", description: "The element name to delete", }, type: { type: "string", description: "The element type", enum: Object.values(ElementType), }, deleteData: { type: "boolean", description: "Whether to delete associated data files (if not specified, will prompt)", default: undefined, }, }, required: ["name", "type"], }, }, handler: (args: DeleteElementArgs) => server.deleteElement(args) },
- src/server/types.ts:27-27 (schema)Method signature in IToolHandler interface for the underlying deleteElement implementation called by the tool handler.deleteElement(args: {name: string; type: string; deleteData?: boolean}): Promise<any>;