translationsRemove mutation

Removes translations.

Required access

write_translations access scope.

On this page

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.

mutation translationsRemove($resourceId: ID!, $translationKeys: [String!]!, $locales: [String!]!) { translationsRemove(resourceId: $resourceId, translationKeys: $translationKeys, locales: $locales) {
  1. <font style="color:#1F61A0;">translations</font> <font style="color:#555555;">{</font>
  2. <font style="color:#1F61A0;">key</font>
  3. <font style="color:#1F61A0;">locale</font>
  4. <font style="color:#1F61A0;">outdated</font>
  5. <font style="color:#1F61A0;">value</font>
  6. <font style="color:#555555;">}</font>
  7. <font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font>
  8. <font style="color:#1F61A0;">code</font>
  9. <font style="color:#1F61A0;">field</font>
  10. <font style="color:#1F61A0;">message</font>
  11. <font style="color:#555555;">}</font>
} } { “resourceId”: “Z2lkOi8vU2hvcGlmeS9FeGFtcGxlLzE=”, “translationKeys”: [
  1. <font style="color:#D64292;">"placeholder"</font>
], “locales”: [
  1. <font style="color:#D64292;">"placeholder"</font>
] }

Arguments

Argument Description
locales
(
[[String!]!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)

) REQUIRED
List of translation locales.
resourceId
(
[ID!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01)

) REQUIRED
ID of a translatable resource.
translationKeys
(
[[String!]!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)

) REQUIRED
List of translation keys.

Return fields

  • translations ([[Translation!]](https://shopify.dev/docs/admin-api/graphql/reference/translations/translation))
    The translations that were deleted.
  • userErrors ([[TranslationUserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/translations/translationusererror))
    List of errors that occurred executing the mutation.