- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to delete a Type in Atlas?
- Labels:
-
Apache Atlas
Created ‎07-16-2018 07:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- http://atlas.apache.org/0.8.0-incubating/api/v2/index.html
- https://atlas.apache.org/0.8.1/api/v2/resource_TypesREST.html
The legacy (v1) API only supports GET, PUT and POST operations on types.
Created ‎07-16-2018 07:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- http://atlas.apache.org/0.8.0-incubating/api/v2/index.html
- https://atlas.apache.org/0.8.1/api/v2/resource_TypesREST.html
The legacy (v1) API only supports GET, PUT and POST operations on types.
Created ‎07-17-2018 09:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good deal - HTH!
