Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

How to hard delete the relationShip in Apache Atlas

avatar
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

avatar
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"]'

avatar
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.

avatar
New Contributor
Labels