I am currently using fsspec
in order to read and write files to my google cloud buckets with the code as shown below:
with fs.open(gcs_file_tmp, "rb") as fp:
gcs_file_content = fp.read()
Now I want to remove a file from a GCS bucket, but I cannot seem to find the code for it. Reading the documentation here, it seems as though there are some rm
based functions and also some delete
functions but they don't seem to work as they cannot be called as such fs.rm(...)
or so