pyapacheatlas.core.glossary.glossaryclient.PurviewGlossaryClient.delete_assignedTerm#

PurviewGlossaryClient.delete_assignedTerm(entities, termGuid=None, termName=None, glossary_name='Glossary', glossary_guid=None)#

Remove a single term from many entities. Provide either a term guid (if you know it) or provide the term name and glossary name. If term name is provided, term guid is ignored.

As for entities, you may provide a list of AtlasEntity BUT they must have a valid guid defined (not None, not -N) and a relationshipAttribute of meanings with an entry that has the term’s guid and relationshipGuid. Alternatively, you may provide your own dict that contains a ‘guid’ and ‘relationshipGuid’ key and value. Lastly, you may also pass in the results of the ‘entities’ key from the get_entity method and it will parse the relationshipAttributes properly and silently ignore the meanings that do not match the termGuid.

Parameters
  • entities (list(Union(dict, AtlasEntity))) – The list of entities that should have the term assigned.

  • termGuid (str) – The guid for the term. Ignored if using termName.

  • termName (str) – The name of the term. Optional if using termGuid.

  • glossary_name (str) – The name of the glossary. Defaults to Glossary. Ignored if using termGuid.

Returns

A dictionary indicating success or failure.

Return type

dict