How to remove entries in the library of not existing movies?

How can one remove entries in the library of movies / series which do not exist anymore or are moved without removing the entries of movies / series being on external drives not being plugged in at the moment?