Support Questions
Find answers, ask questions, and share your expertise

How can we delete user defined Type in Apache Atlas ?

How can we delete user defined Type in Apache Atlas ?

Explorer

HI Team,

I created one custom Type in Atlas Ex : External _Table

I want to delete that Type in Atlas , I don't wont to see that Type in Atlas UI and API Search also

Can you please suggest me , How to delete that Type

Tahnks in advance..!!!

3 REPLIES 3
Highlighted

Re: How can we delete user defined Type in Apache Atlas ?

Guru

I had created a type called 'testDevice' and used the following to delete it. Note that the successful response code is HTTP/1.1 204 No Content

curl -u ${UU_PWD} -ik -H "Content-Type: application/json" -X DELETE "http://${ATLAS_HOST}:21000/api/atlas/v2/types/typedefs" -d \
'{
  "enumDefs": [],
  "structDefs": [],
  "classificationDefs": [],
  "entityDefs": [ {
    "name": "testDevice"
    }
  ]
}'
Highlighted

Re: How can we delete user defined Type in Apache Atlas ?

Explorer

Thank you for quick response @Greg Keys

While deleting i am getting below error message

{"errorCode":"ATLAS-409-00-002","errorMessage":"Given type testDevice has references"}


That type had few records (entities) , even though i need to delete that entity , Can you please help on this ?

Thanks in advance...!!!

Highlighted

Re: How can we delete user defined Type in Apache Atlas ?

New Contributor

I am also having similar issue anyone helped you Satya ?

Don't have an account?