--- title: marketDelete - GraphQL Admin description: Deletes a market definition. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketdelete md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/marketdelete.md --- # market​Delete mutation Requires `read_markets` for queries and both `read_markets` as well as `write_markets` for mutations. Deletes a market definition. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the market to delete. *** ## Market​Delete​Payload returns * deleted​Id [ID](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) The ID of the deleted market. * user​Errors [\[Market​User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/MarketUserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### marketDelete reference ## Mutation Reference ```graphql mutation marketDelete($id: ID!) { marketDelete(id: $id) { deletedId userErrors { field message } } } ``` ## Input ```json { "id": "gid://shopify//10079785100" } ``` ##### Variables ``` { "id": "gid://shopify//10079785100" } ```