def cleanup(self):
        # type: () -> None
        """Remove the temporary directory created and reset state
        """
        self._deleted = True
        if os.path.exists(self._path):
            rmtree(self._path)
Remove the temporary directory created and reset state
        
product/gradle-plugin/src/main/python/pip/_internal/utils/temp_dir.py