**Version: 202201**

# Delete Metafield

**DELETE** `/openapi/2022-01/:resource/:resource_id/metafields/:id`

## Request

**Path Parameters**

- `resource` string (required)

  The type of resource that the metafield is attached to. Available resources: `shop`, `product`, `product_image`, `product_variant`, `order`, `page`, `customer`, `collection`, `blog`, `article`.
- `resource_id` string (required)

  The unique ID of the resource that the metafield is attached to.
- `id` string (required)

  Metafield's ID

## Responses

**200**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `metafield` object

  - `id` string

    **Example:** `374050809094090794`
  - `store_id` integer

    **Default value:** `0`

    **Example:** `633130`
  - `created_at` string

    **Example:** `0001-01-01T00:00:00Z`
  - `updated_at` string

    **Example:** `0001-01-01T00:00:00Z`
  - `owner_resource` string

    **Example:** `product`
  - `owner_id` string

    **Example:** `a1a88be0-a1d4-47e4-a2f2-ba6e131cf447`
  - `namespace` string

    **Example:**
  - `key` string

    **Example:**
  - `type` string

    **Example:**
  - `value`
  - `description` string

    **Example:**
  - `definition_id` string

    **Example:** `0`

```json
{
  "metafield": {
    "id": "374050809094090794",
    "store_id": 633130,
    "created_at": "0001-01-01T00:00:00Z",
    "updated_at": "0001-01-01T00:00:00Z",
    "owner_resource": "product",
    "owner_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
    "namespace": "",
    "key": "",
    "type": "",
    "value": {},
    "description": "",
    "definition_id": "0"
  }
}
```

```json
{
  "metafield": {
    "id": "374050809094090794",
    "store_id": 633130,
    "created_at": "0001-01-01T00:00:00Z",
    "updated_at": "0001-01-01T00:00:00Z",
    "owner_resource": "product",
    "owner_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
    "namespace": "",
    "key": "",
    "type": "",
    "value": null,
    "description": "",
    "definition_id": "0"
  }
}
```
