Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File API does not delete files upon request #62

Open
yp583 opened this issue Apr 13, 2024 · 6 comments
Open

File API does not delete files upon request #62

yp583 opened this issue Apr 13, 2024 · 6 comments
Labels
component:quickstarts Issues/PR referencing quickstarts folder status:awaiting response Awaiting a response from the author type:bug Something isn't working

Comments

@yp583
Copy link

yp583 commented Apr 13, 2024

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

@ymodak ymodak added component:quickstarts Issues/PR referencing quickstarts folder type:bug Something isn't working labels Apr 13, 2024
@TYMichaelChen
Copy link
Collaborator

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

@yp583
Copy link
Author

yp583 commented Apr 15, 2024

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

@TYMichaelChen
Copy link
Collaborator

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

@yp583
Copy link
Author

yp583 commented Apr 15, 2024

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

@MarkDaoust
Copy link
Contributor

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

@ymodak ymodak added the status:awaiting response Awaiting a response from the author label Apr 17, 2024
@jochenkirstaetter
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:quickstarts Issues/PR referencing quickstarts folder status:awaiting response Awaiting a response from the author type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants