Requires
read_markets
for queries and both read_markets
as well as write_markets
for mutations.
Deletes a market definition.
Arguments
The ID of the market to delete.
Was this section helpful?
MarketDeletePayload returns
The ID of the deleted market.
The list of errors that occurred from executing the mutation.
Was this section helpful?
Hide code
Mutation reference
Copy
mutation marketDelete($id: ID!) {
marketDelete(id: $id) {
deletedId
userErrors {
field
message
}
}
}
Hide code
Input
Copy
{
"id": "gid://shopify/<objectName>/10079785100"
}