Delete Locale
Permanently removes a locale, subject to the guards below.
Operation
| Operation | Type | Purpose |
|---|---|---|
deleteAdminSettingsLocale | Mutation | Delete a locale by id |
Guards
The delete is refused (returns an errors[] entry, no record removed) when:
- It is the only remaining locale in the store.
- The locale is set as the default locale of one or more channels. For example:
"This locale is the default locale of one or more channels and cannot be deleted."Re-point the channel(s) to another default locale first.
Notes
- The returned node is an in-memory snapshot of the just-deleted record — its scalar fields (
_id,code,name,direction) still resolve so you can confirm what was removed. - Select
messagefor the success confirmation — it resolves to"Locale deleted successfully."on a successful delete.messageisnullon read / list / create / update; a failed delete returns a top-levelerrors[]entry instead. - Do not select the node's IRI
idfield on this mutation — the IRI cannot be generated for a deleted record and the field resolves with anerrors[]entry. Select_idinstead, as shown. - Use the
adminSettingsLocalesquery to discover valid ids.
Permissions: settings.locales.delete. See the Locales overview for behaviour.

