def remove_packages(self, conan_ref, ids_filter=None):
        if not ids_filter:  # Remove all
            self._remove(self._paths.packages(conan_ref), conan_ref, "packages")
            self._remove_file(self._paths.system_reqs(conan_ref), conan_ref, SYSTEM_REQS)
        else:
            for id_ in ids_filter:  # remove just the specified packages
                package_ref = PackageReference(conan_ref, id_)
                self._remove(self._paths.package(package_ref), conan_ref, "package:%s" % id_)
                self._remove_file(self._paths.system_reqs_package(package_ref),
                                  conan_ref, "%s/%s" % (id_, SYSTEM_REQS))
dataset/ETHPy150Open conan-io/conan/conans/operations.py/DiskRemover.remove_packages/original