Skip to content

Delete file by name #357

Closed Answered by shcheklein
VC-dell asked this question in Q&A
Aug 22, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @VC-dell ! It's possible to do the listing first to get IDs (e.g. here https://docs.iterative.ai/PyDrive2/filemanagement/#get-files-by-complex-queries ). And then use that ID to delete the file. Also, keep in mind - Google allows duplicate names - so you might receive multiple IDs back for a single query.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@VC-dell
Comment options

@shcheklein
Comment options

Answer selected by VC-dell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants