Upload and replace image saved in google.drive and shown on the client

Use one of these :

self.profile_image.source.trash()  # moves to trash folder
self.profile_image.source.delete() # permanently deletes the file

You would check for the presence of the file first, then delete it.

Do read that documentation link in my post above, most of this stuff is in there.

2 Likes