creamy-wall-36971
08/30/2023, 6:49 AMfrom datahub.ingestion.graph.client import DatahubClientConfig, DataHubGraph
import time
gms_endpoint = "#######"
graph = DataHubGraph(DatahubClientConfig(server=gms_endpoint))
start = time.time()
for i in range(len(df)):
term_urn = "urn:li:glossaryTerm:" + df['공통표준용어명'][i]
mutation = f"""
mutation batchRemoveTerms {{
batchRemoveTerms(
input: {{
termUrns: ["{term_urn}"],
resources: []
}}
)
}}
"""
result = graph.execute_graphql(query=mutation)
print(result)
end = time.time()
print(f"{end - start: .2f} sec")aloof-gpu-11378
08/31/2023, 7:19 AMaloof-gpu-11378
08/31/2023, 5:45 PMbitter-author-2524
09/01/2023, 11:20 PMAs of datahub v0.10.2.3, hard deleting tags, glossary terms, users, and groups will also remove references to those entities across the metadata graph.