Automating deletion of linage for tables with specific conditions in Datahub using curl

Original Slack Thread

Hi All, I’m performing some automation in datahub - I want to delete the linage of the table that ends with _tab if the last synced date of table is more than 15 days. I want a curl command to achive this. Currently my script fetches the urn of all the domains. Can someone help on how to achieve this ?

Hi <@U05K2SHMBQX>! Very cool use case here… have you taken a look at our <Removing Metadata from DataHub | DataHub Metadata from DataHub> guide? We don’t cover that exact use case, but there’s a ton of great examples to get you going