Delete shop metafield
DELETE/openapi/2025-06/metafields-shop/:id
The Delete Shop Metafield API allows developers to delete an existing metafield for a shop. This endpoint requires the meta field ID in the request URL.
Request
Path Parameters
The unique identifier for the metafield. For example, "123456"
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
shop: Shopproduct: Productproduct_image: Product imageproduct_variant: Product variantorder: Orderpage: Custom pagecustomer: Customercollection: Collectionblog: Blogarticle: Articleapp: Appdate: Datedate_time: Date and timeweight: Weightvolume: Volumedimension: Dimensioninteger: Integernumber_decimal: Decimalfile_reference: File referencesingle_line_text_field: Single-line textmulti_line_text_field: Multi-line textjson: JSONcolor: Colorrating: Ratingurl: URLboolean: Boolean (true or false)string: String
error code
error message
data object
metafield object
The deleted metafield
The unique identifier for the metafield
The ID of the store that owns the metafield
Resource type the metafield is attached to:
The ID of the resource the metafield is attached to. For example, the product ID
A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. For example, "global"
The key of the metafield (unique within the namespace). For example, "color"
Field type of the metafield:
The value of the metafield; its data type is determined by the type field. For example, "red"
A brief description of the metafield. For example, "The color of the product"
The ID of the associated metafield definition. For example, "123456"
{
"code": "string",
"message": "string",
"data": {
"metafield": {
"id": "string",
"store_id": 0,
"owner_resource": "string",
"owner_id": "string",
"namespace": "string",
"key": "string",
"type": "string",
"description": "string",
"definition_id": 0
}
}
}