Function: deleteEntityLabel()

deleteEntityLabel(args: { entity: LixEntityCanonical | LixEntity; label: { id: string; }; lix: Pick<Lix, "db">; }): Promise<void>

Deletes a mapping between an entity and a label.

Example

await deleteEntityLabel({
  lix,
  entity: {
    entity_id: "bundle123",
    schema_key: "inlang_bundle",
    file_id: "messages.json"
  },
  label: { id: "needs-translation-label-id" }
});

Parameters

ParameterType
args{ entity: LixEntityCanonical | LixEntity; label: { id: string; }; lix: Pick<Lix, "db">; }
args.entityLixEntityCanonical | LixEntity
args.label{ id: string; }
args.label.idstring
args.lixPick<Lix, "db">

Returns

Promise<void>