We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6798466 commit c1c1fe4Copy full SHA for c1c1fe4
src/zarr/storage/_obstore.py
@@ -181,7 +181,12 @@ async def delete(self, key: str) -> None:
181
import obstore as obs
182
183
self._check_writable()
184
- await obs.delete_async(self.store, key)
+
185
+ # Some stores such as local filesystems, GCP and Azure raise an error
186
+ # when deleting a non-existent key, while others such as S3 and in-memory do
187
+ # not. We suppress the error to make the behavior consistent across all stores
188
+ with contextlib.suppress(FileNotFoundError):
189
+ await obs.delete_async(self.store, key)
190
191
@property
192
def supports_partial_writes(self) -> bool:
0 commit comments