Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How can we use REST APIs to delete unwanted tags in Atlas?

Highlighted

How can we use REST APIs to delete unwanted tags in Atlas?

New Contributor
 
5 REPLIES 5

Re: How can we use REST APIs to delete unwanted tags in Atlas?

Super Guru

Take a look here

https://community.hortonworks.com/repos/77815/atlas-rest-api-examples.html?shortDescriptionMaxLength...

for example on creating, updating, and deleting atlas entities.

To delete trait/tag in altas via rest you need the GUID. then issue this

curl -X DELETE -u admin:admin -H 'Content-Type: application/json;  charset=UTF-8' 127.0.0.1:21000/api/atlas/entities?guid=c62bb1cd-069b-4176-ab7a-33e8a224bf53

Re: How can we use REST APIs to delete unwanted tags in Atlas?

New Contributor

Thanks. Do you have an example of REST API call for getting the GUID for a tag?

Re: How can we use REST APIs to delete unwanted tags in Atlas?

Expert Contributor

Trait/Tag instances are not “Entities” and they do not have a uniquely identifiable GUID. We can only associate/disassociate trait instances to entities.

Re: How can we use REST APIs to delete unwanted tags in Atlas?

New Contributor

That is what I thought, but the original response is mentioning GUID. I want to delete standalone tags and the ones associated with an entity.

Re: How can we use REST APIs to delete unwanted tags in Atlas?

Expert Contributor

Yes, currently we do not support tag deletion, only association/disassociation with entities. This will be addressed in future release. Please check the community for updates.