Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 07-16-2018 07:22 AM
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!
Created 07-16-2018 07:05 PM
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.
Created 07-16-2018 07:05 PM
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.
Created 07-17-2018 09:58 AM
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.
Created 07-17-2018 10:07 AM
If that's failing, keep in mind you won't be able to delete the type if there are entities in the typedef.
Created 07-17-2018 02:02 PM
Good deal - HTH!