If the entrance is invalid, delete it.