Gå til hovedinnhold

Remove Target tool

The Remove Target tool deletes target segments from blocks. With a target locale set, it removes only that locale's targets; with no locale, it removes all targets. It is useful for resetting translations before a fresh run, or for clearing targets in a specific locale.

Removal can be scoped to specific text units by ID, which restricts the operation to a comma-separated list of block IDs. Optionally, a block whose targets are all removed can itself be dropped from the stream.

IDremove-target
SourceBuilt-in
Categorytext-processing
Cardinalitybilingual
Requirestarget-language

Parameters

ParameterTypeDefaultDescription
filterByIDsbooleantrueWhen true filter text units by ID; when false filter by target locale
removeBlockIfEmptybooleanfalseRemove the text unit entirely if it has no remaining targets after removal
targetLocalestringTarget locale to remove (if empty all targets are removed)
textUnitIDsstringComma-delimited list of text unit IDs whose targets should be removed; empty removes all targets

Configure these parameters interactively and copy the flow-step YAML on the Tool Reference.

Examples

Clear one locale's targets

Remove the French targets from every block.

targetLocale: fr-FR

Remove targets for selected text units

Restrict removal to specific block IDs.

filterByIDs: true
textUnitIDs: "intro.title, intro.body"

Processing notes

  • Operates on translatable blocks only; non-translatable blocks pass through unchanged.

← Back to the Tool Reference