delete_metaobject
Permanently delete a metaobject by its GID. This irreversible action breaks any metafield references; Shopify does not auto-clean them, requiring manual fixes.
Instructions
Permanently delete a metaobject by GID. Irreversible. Any metafield references pointing at this metaobject will become broken — Shopify does NOT auto-clean references, you have to find and fix them. Use get_metaobject to confirm the right record before deleting. Returns the deleted GID, or a no-op message if nothing matched.
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": {
"id": "<id>"
},
"name": "delete_metaobject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | GID of the metaobject to delete. Irreversible; metafield references to this metaobject become broken (Shopify does not auto-clean referrers). |