Google-drive – Trash with 80 thousand files. “Empty Trash” doesn’t work!

google-drive

I left Google Drive uploading all my files accidentally and it uploaded 80 thousand files. I tried to delete all files in Drive, but it is impossible. Because the "Empty Trash" function only erases the files on the screen (+/- 100 files), it will be necessary to "empty trash" several thousand times.

Is there a way to "empty trash" faster?

Best Answer

Try executing the Google Drive REST APIs method Files:emptyTrash from https://developers.google.com/drive/api/v3/reference/files/emptyTrash

Open the link, click TRY IT! and EXECUTE and Authorise your account. You will get a 204 response which indicates a success execution.

This worked for me, but the files got deleted very slowly (~2 hours).