Delete Address Metafield
API operation: Open the endpoint in Scalar
Use DELETE /users/{user_id}/addresses/{address_id}/metafields/{metafield_id} to delete a metafield from a user's address. The operation documented here is AddressMetafield.delete.
The documented schema requires authentication. A non-administrator can act only when user_id identifies the authenticated user, and the deletion targets the specified address_id and metafield_id. Deletion is destructive, so verify the full identifier chain before use.
See List address metafields for the related collection.
OpenAPI reference
Operation: DELETE /users/{user_id}/addresses/{address_id}/metafields/{metafield_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
user_id | integer | Yes | — |
address_id | integer | Yes | — |
metafield_id | 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) |