--- title: shopLocaleDisable - GraphQL Admin description: Deletes a locale for a shop. This also deletes all translations of this locale. api_version: 2025-10 api_name: admin type: mutation api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/mutations/shoplocaledisable md: https://shopify.dev/docs/api/admin-graphql/latest/mutations/shoplocaledisable.md --- # shop​Locale​Disable mutation Requires `write_locales` access scope. Deletes a locale for a shop. This also deletes all translations of this locale. ## Arguments * locale [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) required ISO code of the locale to delete. *** ## Shop​Locale​Disable​Payload returns * locale [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) ISO code of the locale that was deleted. * user​Errors [\[User​Error!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/UserError) non-null The list of errors that occurred from executing the mutation. *** ## Examples * ### Delete the Korean locale from a shop #### Description Deleting a locale also permanently deletes all of its translations. #### Query ```graphql mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } } ``` #### Variables ```json { "locale": "ko" } ``` #### cURL ```bash curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-10/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } }", "variables": { "locale": "ko" } }' ``` #### React Router ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } }`, { variables: { "locale": "ko" }, }, ); const json = await response.json(); return json.data; } ``` #### Ruby ```ruby session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } } QUERY variables = { "locale": "ko" } response = client.query(query: query, variables: variables) ``` #### Node.js ```javascript const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: { "query": `mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } }`, "variables": { "locale": "ko" }, }, }); ``` #### Response ```json { "shopLocaleDisable": { "userErrors": [], "locale": "ko" } } ``` * ### shopLocaleDisable reference [Open in GraphiQL](http://localhost:3457/graphiql?query=mutation%20disableLocale\(%24locale%3A%20String!\)%20%7B%0A%20%20shopLocaleDisable\(locale%3A%20%24locale\)%20%7B%0A%20%20%20%20userErrors%20%7B%0A%20%20%20%20%20%20message%0A%20%20%20%20%20%20field%0A%20%20%20%20%7D%0A%20%20%20%20locale%0A%20%20%7D%0A%7D\&variables=%7B%0A%20%20%22locale%22%3A%20%22ko%22%0A%7D) ##### GQL ```graphql mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } } ``` ##### cURL ```bash curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-10/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } }", "variables": { "locale": "ko" } }' ``` ##### React Router ```javascript import { authenticate } from "../shopify.server"; export const loader = async ({request}) => { const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } }`, { variables: { "locale": "ko" }, }, ); const json = await response.json(); return json.data; } ``` ##### Node.js ```javascript const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: { "query": `mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } }`, "variables": { "locale": "ko" }, }, }); ``` ##### Ruby ```ruby session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY mutation disableLocale($locale: String!) { shopLocaleDisable(locale: $locale) { userErrors { message field } locale } } QUERY variables = { "locale": "ko" } response = client.query(query: query, variables: variables) ``` ## Input variables JSON ```json { "locale": "ko" } ``` ## Response JSON ```json { "shopLocaleDisable": { "userErrors": [], "locale": "ko" } } ```