doordash_delete_cart
Remove a DoorDash shopping cart by providing its cart ID to clear unwanted items or cancel pending orders.
Instructions
Delete a cart.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | Cart ID to delete |
Implementation Reference
- src/tools/index.ts:560-563 (handler)The handler for the doordash_delete_cart tool, which calls api.cart.deleteCart to remove a cart.
wrap(async () => { await api.cart.deleteCart(cart_id); return ok(`Cart ${cart_id} deleted.`); }), - src/tools/index.ts:553-564 (registration)Registration of the doordash_delete_cart tool with its schema and handler.
server.registerTool( "doordash_delete_cart", { description: "Delete a cart.", inputSchema: { cart_id: z.string().describe("Cart ID to delete") }, }, ({ cart_id }) => wrap(async () => { await api.cart.deleteCart(cart_id); return ok(`Cart ${cart_id} deleted.`); }), );