Have you considered using PyApacheAtlas? A delete operation across many assets can be as simple as this delete sample.
client = PurviewClient(
account_name = os.environ.get("PURVIEW_NAME", ""),
authentication=oauth
)
# When you know the GUID that you want to delete
response = client.delete_entity(guid="123-abc-456-def")
print(json.dumps(response, indent=2))
# When you need to find multiple Guids to delete and they all
# are the same type
entities = client.get_entity(
qualifiedName=["qualifiedname1", "qualifiedname2", "qualifiedname3"],
typeName="my_type"
)
# This is a naive approach and it would be better to batch
# the delete into groups of say 100
for entity in entities.get("entities"):
guid = entity["guid"]
delete_response = client.delete_entity(guid=guid)
print(json.dumps(delete_response, indent=2))
Ultimately, if you don't know the guids, you'll need to fetch the entities based on searching for them or using the fully qualified name and type to get the entity and then retrieve their guid.
This can be accomplished via the Purview REST API as well using: