Skip to content

Commit

Permalink
Note that whole directories can be deleted in LocalStore (zarr-develo…
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby authored Jan 2, 2025
1 parent 2998561 commit b9699f5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/zarr/storage/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,18 @@ async def set_partial_values(
await concurrent_map(args, asyncio.to_thread, limit=None) # TODO: fix limit

async def delete(self, key: str) -> None:
"""
Remove a key from the store.
Parameters
----------
key : str
Notes
-----
If ``key`` is a directory within this store, the entire directory
at ``store.root / key`` is deleted.
"""
# docstring inherited
self._check_writable()
path = self.root / key
Expand Down

0 comments on commit b9699f5

Please sign in to comment.