Skip to content

How to delete a file using ObjectStorage #39645

Answered by pedro-cf
pedro-cf asked this question in Q&A
Discussion options

You must be logged in to vote

Ok figured it out. (https://github.com/fsspec/universal_pathlib)

base_path = ObjectStoragePath("abfs://test", conn_id="azb")
(base_path / "test.txt").unlink()

If anyone knows a better way, feel free to add.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pedro-cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant