delete_item
Remove an inventory item from ConsignCloud by soft deleting it using the item ID. This tool helps manage consignment business operations by clearing unwanted items from inventory.
Instructions
Delete (soft delete) an inventory item
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Item ID |
Implementation Reference
- src/server.ts:442-444 (handler)MCP tool handler that calls client.deleteItem with the provided item ID and returns success message.case 'delete_item': await client.deleteItem((args as any).id); return { content: [{ type: 'text', text: 'Item deleted successfully' }] };
- src/server.ts:79-89 (registration)Registration of the delete_item tool in the tools list used for ListTools response, including description and input schema.{ name: 'delete_item', description: 'Delete (soft delete) an inventory item', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Item ID' }, }, required: ['id'], }, },
- src/client.ts:122-124 (helper)Core implementation of deleteItem that performs the HTTP DELETE request to the API endpoint `/items/${id}`.async deleteItem(id: string): Promise<void> { await this.client.delete(`/items/${id}`); }