mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 10:49:00 +00:00 
			
		
		
		
	 eda1db081b
			
		
	
	
		eda1db081b
		
			
		
	
	
	
	
		
			
			Co-authored-by: John Joyce <john@Johns-MacBook-Pro.local> Co-authored-by: John Joyce <john@ip-10-0-0-48.us-west-2.compute.internal> Co-authored-by: John Joyce <john@Johns-MBP-432.lan> Co-authored-by: John Joyce <john@ip-192-168-1-200.us-west-2.compute.internal> Co-authored-by: John Joyce <john@Johns-MBP.lan>
		
			
				
	
	
		
			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}")
 |