Skip to content

Commit 6ad9a0a

Browse files
carshadijhamman
andauthored
Update src/zarr/storage/_fsspec.py
Co-authored-by: Joe Hamman <[email protected]>
1 parent 08dc4f9 commit 6ad9a0a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/zarr/storage/_fsspec.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,8 @@ async def delete_dir(self, prefix: str) -> None:
293293

294294
path_to_delete = _dereference_path(self.path, prefix)
295295

296-
# this is probably the same condition as `if self.fs.async_impl`
297-
if hasattr(self.fs, "_rm") and inspect.iscoroutinefunction(self.fs._rm):
298-
with suppress(*self.allowed_exceptions):
299-
await self.fs._rm(path_to_delete, recursive=True)
300-
else:
301-
raise NotImplementedError("The store does not support async deletes")
296+
with suppress(*self.allowed_exceptions):
297+
await self.fs._rm(path_to_delete, recursive=True)
302298

303299
async def exists(self, key: str) -> bool:
304300
# docstring inherited

0 commit comments

Comments
 (0)