Skip to main content
dhughes20
Gold ⭐️
March 30, 2023
Solved

Delete custom Type with relationshipAttributeDefs

Hello,

I have built a custom Type with no Entities.  However when I try to delete it I get an error, "Given type InformationAssets has references".  When I pull back that Type using the API I can see it has some built-in relationship:


"relationshipAttributeDefs": [
{
"name": "meanings",
"typeName": "array<AtlasGlossaryTerm>",
"isOptional": true,
"cardinality": "SET",
"valuesMinCount": -1,
"valuesMaxCount": -1,
"isUnique": false,
"isIndexable": false,
"includeInNotification": false,
"searchWeight": -1,
"relationshipTypeName": "AtlasGlossarySemanticAssignment",
"isLegacyAttribute": false
}
]

There are no entities under this Type, so there are no Glossary Terms assigned to it.  I'm not sure how this relationship was created in the first place.  I've deleted relationshipDefs before, but this one "AtlasGlossarySemanticAssignment" appears to be some built-in relationship.  

Does anyone know how I can remove this in order to delete the Type?

Thanks in advance!

dhughes20
dhughes20Answer
Gold ⭐️
March 31, 2023

I found out the issue I faced was not because of the relationshipAttributeDefs of "meanings".  This is apparently inherited from the Referenceable supertype.  This was not the cause of me getting the "Given type InformationAssets has references" error when trying to delete.

1 reply

dhughes20
dhughes20AuthorAnswer
Gold ⭐️
March 31, 2023

I found out the issue I faced was not because of the relationshipAttributeDefs of "meanings".  This is apparently inherited from the Referenceable supertype.  This was not the cause of me getting the "Given type InformationAssets has references" error when trying to delete.

Translate