Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

How to hard delete the relationShip in Apache Atlas

Explorer

Hi:

 Is it currently possible to hard delete (purge) Relationships and RelationshipDefs via the API?

I use the api /api/atlas/admin/purge/ to delete a DELETED Relationship but no use.

Any help will be useful,Thanks.

The Atlas version is 2.2.0

 

Meepoljd_0-1667289029399.png

 

3 REPLIES 3

New Contributor

 

Try with the following two steps

1. DELETE (soft)
curl -X DELETE -u ID:PASSWORD -H 'accept: application/json' -H 'cache-control: no-cache' -H 'content-type: application/json' http://HOST:31000/api/atlas/v2/entity/guid/6da8f424-c225-465f-9841-b6a1719bd0dd

2. PURGE (hard)
curl -i -X PUT -H 'Content-Type: application/json' -H 'Accept: application/json' -u ID:PASSWORD 'http://HOST:31000/api/atlas/admin/purge/' -d '["6da8f424-c225-465f-9841-b6a1719bd0dd"]'

Explorer

Thanks,but this api is used to delete the entity,I'm afraid it can't be used to delete a deleted Relationship hardly.

New Contributor
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.