diff --git a/dvc/fs/fsspec_wrapper.py b/dvc/fs/fsspec_wrapper.py index daaf3a031..74021714a 100644 --- a/dvc/fs/fsspec_wrapper.py +++ b/dvc/fs/fsspec_wrapper.py @@ -102,7 +102,7 @@ class FSSpecWrapper(BaseFileSystem): yield path_info.replace(path=file) def remove(self, path_info): - self.fs.rm(self._with_bucket(path_info)) + self.fs.rm_file(self._with_bucket(path_info)) def info(self, path_info): info = self.fs.info(self._with_bucket(path_info)).copy() diff --git a/dvc/fs/oss.py b/dvc/fs/oss.py index 423607a85..6ed2f3f2f 100644 --- a/dvc/fs/oss.py +++ b/dvc/fs/oss.py @@ -39,6 +39,3 @@ class OSSFileSystem(CallbackMixin, ObjectFSWrapper): from ossfs import OSSFileSystem as _OSSFileSystem return _OSSFileSystem(**self.fs_args) - - def remove(self, path_info): - self.fs.rm_file(self._with_bucket(path_info))