added functionality to delete unused mirrors