---
title: "Delete Order Metafield"
description: "Use DELETE /orders/{order_id}/metafields/{metafield}. The current operation is OrderMetafield.delete."
canonical: https://docs.ordering.co/api-reference/guides/delete-order-metafield/
---

# Delete Order Metafield

> **API operation:** [Open the endpoint in Scalar](https://docs.ordering.co/api-reference/#tag/orders/DELETE/orders/{order_id}/metafields/{metafield})

Use `DELETE /orders/{order_id}/metafields/{metafield}`. The current operation is `OrderMetafield.delete`. The final parameter identifies a metafield on the selected order. Deletion is destructive; confirm both IDs and your access before using it.

## OpenAPI reference

**Operation:** `DELETE /orders/{order_id}/metafields/{metafield}`

**Path parameters**

| Name        | Type    | Required | Description |
| ----------- | ------- | -------- | ----------- |
| `order_id`  | integer | Yes      | —           |
| `metafield` | integer | Yes      | —           |

**Responses**

| Code | Description                           |
| ---- | ------------------------------------- |
| 200  | OK (Envelope)                         |
| 400  | Bad Request (ErrorResponse)           |
| 401  | Unauthorized                          |
| 404  | Not Found                             |
| 429  | Too Many Requests (ErrorResponse)     |
| 500  | Internal Server Error (ErrorResponse) |
| 503  | Service Unavailable (ErrorResponse)   |

[Open this operation in the API reference](https://docs.ordering.co/api-reference/#tag/orders/DELETE/orders/{order_id}/metafields/{metafield})
