Cleanup old removed object references

Hi,

In the PimCore database I see alot of orphaned data from removed objects or data components

For example we removed an unused dataobject and forgot to remove this object in an exportjob. this object is not shown in the interface anymore but is still exporting the values. The same happens with removed objects that still shows up when doing a query in MySQL.

Is there a way to cleanup all this orphaned data?