Remove Translations
remove_translationsDelete specified translation keys from every locale file in a layer; preview with dry-run before applying.
Instructions
Remove one or more translation keys from ALL locale files in the given layer. Use dryRun to preview the changes before applying them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Dot-separated key paths to remove from every locale file in the layer. Example: ["common.actions.delete", "auth.errors.expired"]. | |
| layer | Yes | Layer name from discover (e.g., "root", "app-admin"). The keys are removed from ALL locale files in this layer. | |
| dryRun | No | Return a preview of what would be removed without writing any files. Default: false. | |
| projectDir | No | Absolute path to the project root. Defaults to I18N_PROJECT_DIR, then server cwd. Example: "/home/user/my-app". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | True when nothing was removed because a preview was asked for. Absent otherwise. | |
| message | No | The step to take next, as the surface the call ran on phrases it. Present only when there is no summary to carry it. | |
| removed | No | Dot-path keys removed from at least one locale file. Absent on a dry run. | |
| summary | No | Counts of what the run did. Absent on a dry run. | |
| notFound | No | Requested keys no locale file of the layer defined. Absent when every key existed. | |
| wouldRemove | No | What a dry run would remove. Present only with dryRun. | |
| filesWritten | No | Number of locale files changed on disk. Absent on a dry run. | |
| removedPerLocale | No | One "locale:key" entry per file-level removal. Absent on a dry run. |