DeleteProperty
Remove specific properties from a RushDB graph database by providing the property ID to maintain clean data structures.
Instructions
Delete a property from the database
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| propertyId | Yes | ID of the property to delete |
Implementation Reference
- tools/DeleteProperty.ts:17-26 (handler)The core handler function for the DeleteProperty tool, which deletes a property by its ID using the database utility.export async function DeleteProperty(params: { propertyId: string }) { const { propertyId } = params await db.properties.delete(propertyId) return { success: true, message: `Property '${propertyId}' deleted successfully` } }
- tools.ts:413-421 (registration)Registration of the DeleteProperty tool in the central tools array, including its name, description, and input schema for MCP tool listing.{ name: 'DeleteProperty', description: 'Delete a property from the database', inputSchema: { type: 'object', properties: { propertyId: { type: 'string', description: 'ID of the property to delete' } }, required: ['propertyId'] } },
- tools.ts:416-420 (schema)Input schema definition for the DeleteProperty tool, specifying the required propertyId parameter.inputSchema: { type: 'object', properties: { propertyId: { type: 'string', description: 'ID of the property to delete' } }, required: ['propertyId'] }
- index.ts:467-478 (handler)Dispatch handler in the MCP server's CallToolRequestSchema handler that invokes the DeleteProperty tool.case 'DeleteProperty': const deletePropertyResult = await DeleteProperty({ propertyId: args.propertyId as string }) return { content: [ { type: 'text', text: deletePropertyResult.message } ] }