Archive (soft-delete) a location
delete_locationArchive an unused duplicate location to free its slug and remove it from merchant lists while retaining order and menu data for audit.
Instructions
Soft-deletes a location: sets archivedAt, frees the slug, removes it from the merchant location list and Clerk org metadata. Order/menu rows remain for audit. Use to remove unused duplicates. Requires craveup login.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"locationId": "<locationId>"
},
"name": "delete_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Preview by default. Apply requires the exact returned planDigest. | dry-run |
| locationId | Yes | Crave location id to archive | |
| planDigest | No | Exact digest returned by a dry-run of the same arguments. | |
| confirmationToken | No | Required exact phrase for destructive, paid, or release operations. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| mode | Yes | ||
| status | Yes | ||
| changes | Yes | ||
| summary | Yes | ||
| operation | Yes | ||
| planDigest | Yes | ||
| environment | Yes | ||
| nextActions | Yes | ||
| schemaVersion | Yes |