Broken Links to Master-Components

We have restructured our libraries. We moved some components to other files, and some, deprectated components was deleted. This works fine in generell. But now we have some ghost components.
This means, if I search for a component they will be listed and can be used, but if I want to go to the Master Component I’ll get an 404 Error.
How to delete it them of the system?