detachLabel(
args: {entity:LixEntityCanonical|LixEntity;label: {id:string; };lix:Pick<Lix,"db">;versionId?:string; }):Promise<void>
Detaches a label from an entity (removes mapping).
await detachLabel({
lix,
entity: {
entity_id: "bundle123",
schema_key: "inlang_bundle",
file_id: "messages.json"
},
label: { id: "needs-translation-label-id" }
});// Remove a label from the global version
await detachLabel({
lix,
entity: {
entity_id: "cs123",
schema_key: "lix_change_set",
file_id: "lix"
},
label: { id: "reviewed-label-id" },
versionId: "global"
});| Parameter | Type |
|---|---|
args | { entity: LixEntityCanonical | LixEntity; label: { id: string; }; lix: Pick<Lix, "db">; versionId?: string; } |
args.entity | LixEntityCanonical | LixEntity |
args.label | { id: string; } |
args.label.id | string |
args.lix | Pick<Lix, "db"> |
args.versionId? | string |
Promise<void>