Changed and corrected remove all method.