cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

File API does not delete files upon request

Open yp583 opened this issue 1 year ago • 6 comments

genai.delete_file(frame.response.name), buffers forever. There is no response, no error, just buffering until I cancel the call.

yp583 avatar Apr 13 '24 20:04 yp583

Hi, can you provide more information? What language are you using? Is it a colab notebook? Is it a local colab notebook? thanks!

TYMichaelChen avatar Apr 15 '24 14:04 TYMichaelChen

I'm using Python, and its a local file (just a .py), not a notebook.

yp583 avatar Apr 15 '24 14:04 yp583

Thanks! Is it possible to share the code with me so I can debug further?

TYMichaelChen avatar Apr 15 '24 15:04 TYMichaelChen

Sorry, I'm not sure I still have it. I will try and find it for you though.

yp583 avatar Apr 15 '24 19:04 yp583

The example's working fine in colab, I don't think we can help without sone way to reproduce this.

MarkDaoust avatar Apr 17 '24 18:04 MarkDaoust

Deleting files via REST API also works fine. Using the provided files/sjkdfsdi name to delete it. The name can be retrieved using the list_files method.

I used this approach in my Gemini SDK for .NET. Works nicely.

jochenkirstaetter avatar Apr 25 '24 11:04 jochenkirstaetter

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

github-actions[bot] avatar Aug 16 '24 04:08 github-actions[bot]