Add a method for clearing all the detector