mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
19 lines
402 B
Python
19 lines
402 B
Python
![]() |
import logging
|
||
|
|
||
|
from datahub.ingestion.graph.client import DatahubClientConfig, DataHubGraph
|
||
|
|
||
|
log = logging.getLogger(__name__)
|
||
|
|
||
|
graph = DataHubGraph(
|
||
|
config=DatahubClientConfig(
|
||
|
server="http://localhost:8080",
|
||
|
)
|
||
|
)
|
||
|
|
||
|
assertion_urn = "urn:li:assertion:my-assertion"
|
||
|
|
||
|
# Delete the Assertion
|
||
|
graph.delete_entity(urn=assertion_urn, hard=True)
|
||
|
|
||
|
log.info(f"Deleted assertion {assertion_urn}")
|