diff --git a/src/zarr/storage/common.py b/src/zarr/storage/common.py index 0485a33576..1e33967414 100644 --- a/src/zarr/storage/common.py +++ b/src/zarr/storage/common.py @@ -160,10 +160,7 @@ async def delete_dir(self) -> None: """ Delete all keys with the given prefix from the store. """ - path = self.path - if not path.endswith("/"): - path += "/" - await self.store.delete_dir(path) + await self.store.delete_dir(self.path) async def set_if_not_exists(self, default: Buffer) -> None: """