Remove customer metafield
This page was printed on Jul 03, 2022. For the current version, visit https://help.shopify.com/en/manual/shopify-flow/reference/actions/remove-customer-metafield.
The Remove customer Metafield action removes Metafields from the customer that triggers the workflow.
Fields
The Remove customer Metafield action contains the following fields.
Field | Description |
---|---|
Metafield namespace | Required. A Metafield namespace is a container for a group of Metafields. Grouping Metafields within a namespace prevents your Metafields from conflicting with others. |
Key | Required. A key is an identifier for the Metafield value. |
Triggers
The Remove customer Metafield action has a hidden field added to it by the trigger. This field, Customer ID, identifies the collection to have a Metafield removed. The customer ID is set by default and can't be changed.
The Remove customer Metafield action can be used in workflows that start with the following triggers:
- Customer account disabled
- Customer account enabled
- Customer created
- Order cancelled
- Order created
- Order fulfilled
- Order paid
- Order risk analyzed
- Order transaction created
- Refund created
- Subscription contract created
Example
In this example workflow, a customer Metafield is removed from a customer when their account is disabled.
API details
To learn more, review the MetafieldInput input object.