delete_metaobject
Permanently delete a Shopify metaobject by GID. Irreversible — breaks any metafield references (Shopify does not auto-clean). Confirm with get_metaobject first. Returns deleted GID or no-op.
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.
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). |