Investigating and resolving issues with deleting a domain in DataHub 0.12.1

Original Slack Thread

I’m trying to delete a domain (DominioGenerico) that had 10,000 items. The deletion started, then stopped, and now 4,000 items are still attached to the domain. Can you please help me figure out what’s wrong and how to finish deleting everything? The domain is now displaying urn:li:domain:DominioGenerico


Hey there! :wave: Make sure your message includes the following information if relevant, so we can help more effectively!

  1. Which DataHub version are you using? (e.g. 0.12.0)
  2. Please post any relevant error logs on the thread!

datahub 0.12.1

The display is likely because the platform entity was deleted in your deletion so it no longer has the associated display name. What do you mean by the deletion stopped? Did an error occur or it said it completely successfully and didn’t? Or did you manually stop it in the middle of execution? Are you now unable to run the deletion again? Also please share the command you ran to execute the deletion.

It said completely Succesful and didn’t… I tried to delete the domain in the UI

it succesfully deleted like 60% of the domain attached

Hmm, were there any errors in the logs on GMS?

according to the docs “an asset can belong to only one Domain at a time.” but when I look at the database I see this:
Assets with more than one domain![attachment]({‘ID’: ‘F06SNSAGVAS’, ‘EDITABLE’: False, ‘IS_EXTERNAL’: False, ‘USER_ID’: ‘U04K7EB7G4D’, ‘CREATED’: ‘2024-04-04 18:47:16+00:00’, ‘PERMALINK’: ‘Slack’, ‘EXTERNAL_TYPE’: ‘’, ‘TIMESTAMPS’: ‘2024-04-04 18:47:16+00:00’, ‘MODE’: ‘hosted’, ‘DISPLAY_AS_BOT’: False, ‘PRETTY_TYPE’: ‘PNG’, ‘NAME’: ‘image.png’, ‘IS_PUBLIC’: True, ‘PREVIEW_HIGHLIGHT’: None, ‘MIMETYPE’: ‘image/png’, ‘PERMALINK_PUBLIC’: ‘’, ‘FILETYPE’: ‘png’, ‘EDIT_LINK’: None, ‘URL_PRIVATE’: ‘Slack’, ‘HAS_RICH_PREVIEW’: False, ‘TITLE’: ‘image.png’, ‘IS_STARRED’: False, ‘PREVIEW_IS_TRUNCATED’: None, ‘URL_PRIVATE_DOWNLOAD’: ‘Slack’, ‘PREVIEW’: None, ‘PUBLIC_URL_SHARED’: False, ‘MESSAGE_TS’: ‘1712256463.228849’, ‘PARENT_MESSAGE_TS’: ‘1712177964.213389’, ‘MESSAGE_CHANNEL_ID’: ‘C029A3M079U’, ‘_FIVETRAN_DELETED’: False, ‘LINES_MORE’: None, ‘LINES’: None, ‘SIZE’: 313458, ‘_FIVETRAN_SYNCED’: ‘2024-04-07 12:55:16.659000+00:00’})