Hi! Is there any way to delete a domain again? It ...
# troubleshoot
l
Hi! Is there any way to delete a domain again? It does not seem possible in the UI, and the call to
datahub delete --urn xyz
fails, because the status aspect is unknown for domain entities.
e
datahub delete --urn xyz --hard
can you try ^
this does a hard delete instead of a softdelete
l
Thank you very much, and sorry for the late reply. The
--hard
delete did the trick! 🙂
b
Hi there! We don't recommend doing this, mainly because it doesn't clean up the edge references to the deleted domain. We will be working to introduce a "Delete Domain" api into the product which will do that clean up
l
Thank you very much - that sounds great!
We also noticed another problem: we ingested meta data of some Kafka topics and associated them (accidentally) to a domain X. Later we removed the meta data for all these topics and ingested them again, but this time without any domain association. It turns out that the domain association was remembered and the topics were again in domain X - against the domain mapping of the ingestion recipe with which they were registered. I could imagine that since we only soft-deleted the topics after the first ingestion, the entities got reused in the second run. Is this intentional?
e
Yes! aspects are never soft deleted only entities are. So if you reingest after soft-deleting the aspects will still be there
if this is not intended you should hard-delete the entities!
b
Any news/updates on this? We have the same problem: Wanting to delete a few domains we don't need anymore. @brainy-shampoo-83265 Was the "Delete Domain" api implemented in the mean time? Having such an api or another "official way" to delete domains would be really helpfull.