Support Questions

Find answers, ask questions, and share your expertise

How to delete a Type in Atlas?

avatar

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

avatar
Expert Contributor

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

avatar
Expert Contributor

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.

avatar

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.

avatar

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

avatar
Expert Contributor

Good deal - HTH!