Delete Metafield
Metafields
Delete Metafield
Permanently delete a metafield by id
DELETE
Delete Metafield
Documentation Index
Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt
Use this file to discover all available pages before exploring further.
Delete Metafield
Permanently deletes a metafield owned by your app. Apps cannot delete metafields written by other apps or by merchants. The action cannot be undone.Request
Required scope
write_metafields
Path parameters
The metafield’s UUID (the
id field from list/create responses).Response
Cache invalidation
Deletion automatically expires the storefront caches for the owning resource. The next render will not include the deleted field — Aqua/Liquid access ({{ owner.metafields.namespace.key }}) returns an empty drop, no
error thrown.
Notes
- Themes that read this metafield will see an empty drop on the next
render.
{{ … }}renders empty string;{% if … %}is falsy. No exceptions thrown. - If the merchant or another app also writes a metafield with the same
(ownerType, namespace, key, ownerId), that one is not affected — rows are scoped perappId.
Error codes
| Code | Description |
|---|---|
UNAUTHORIZED | Invalid or missing access token |
FORBIDDEN | App doesn’t have write_metafields scope |
NOT_FOUND | Metafield does not exist, or wasn’t written by your app |