I have an issue with deleted metrics and visualiza...
# gooddata-cloud
p
I have an issue with deleted metrics and visualizations. When we delete a field from a dataset in LDM, does it also delete the metrics/insights that use that field? I noticed that some metrics and visualizations are missing, and I found that a Date field was deleted from LDM. When I try to find the deleted metrics using the API, I can see that they still exist but are not listed in the metrics list. How can I re-link them to the insights/visualizations?
m
Hi Pradeep, any destructive changes in the LDM will drop the related objects from the workspace, in tshi case, the metric/insights. You would need to revert this action or use a restore point to reinstate the objects.
p
Thanks @Moises Morales, I don't have backup for organization but for specific workspaces, does that also work? i am trying to find the master workspace withing backup
m
In that case, you can do a PUT of the declarative layout into the same workspace and it will be rewritten. The endpoint to use is this one: /api/v1/entities/workspaces
Although I recommend doing this in a new workspace
p
Thanks @Moises Morales