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 to delete a Type in Atlas?

Solved Go to solution
Highlighted

How to delete a Type in Atlas?

Hi all,

I'm doing some tests with Atlas Rest-API managing types, entities, etc. I've been able to create types, entities and delete entities... but what about delete a Type?. I've not found information about that...

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to delete a Type in Atlas?

Rising Star

If you are on version 0.8.0 or later of Atlas (HDP 2.6 and up), the version 2.0 APIs support deleting a type via the a DELETE operation on the types/typededfs API:

DELETE /v2/types/typedefs (with JSON payload specifying the typedef to delete)

The legacy (v1) API only supports GET, PUT and POST operations on types.

View solution in original post

4 REPLIES 4
Highlighted

Re: How to delete a Type in Atlas?

Rising Star

If you are on version 0.8.0 or later of Atlas (HDP 2.6 and up), the version 2.0 APIs support deleting a type via the a DELETE operation on the types/typededfs API:

DELETE /v2/types/typedefs (with JSON payload specifying the typedef to delete)

The legacy (v1) API only supports GET, PUT and POST operations on types.

View solution in original post

Highlighted

Re: How to delete a Type in Atlas?

Thanks William, I had seen those APIs but the first tests I did were unsuccessful... I'll insist.

I'll share the findings as soon as possible.

Highlighted

Re: How to delete a Type in Atlas?

If that's failing, keep in mind you won't be able to delete the type if there are entities in the typedef.

Re: How to delete a Type in Atlas?

Rising Star

Good deal - HTH!

Don't have an account?
Coming from Hortonworks? Activate your account here