HI Masha,
When you delete entities from the LDM, dependent metrics and visualizations can indeed become "phantom objects"—they disappear from the UI but still exist in the backend metadata. These objects can only be managed via the API, not the UI.
To resolve this:
• To recover: Restore the deleted LDM entities (with the same IDs) and, if possible, restore the workspace from a backup. This may bring the objects back, but relationships might not be fully restored unless you upload the entire analytics model via the Workspace Declarative Interface.
• To delete: Use the API to list and delete these orphaned objects directly from the metadata.