

īut number of files were too many, so I came up with the idea to pull list of files on one side and feed it to engine that can delete those files. I tried hitting this api and was able to list all those files, and also delete those files using. Then, I explored Google Drive apis to list these orphaned files programmatically, and found that can accepts various q parameter to list the files with different search criteria. I found the link that can list orphaned files, but for my case, it showed “The server encountered an error.

I guessed, files were not deleted when I deleted the folder, probably because there were too many files ? Also people mentioned about the concept of orphaned files in Google Drive, files without parent folder. To my amaze, files dated February, 2017 were present there. Some people suggested to check “Quota” section to find the files that are taking space. After going through various product support forums, I found out that people have faced similar issue, but there is no proper solution to this problem. Since I had bought 1 TB subscription, I didn’t pay attention to space consumed and released after deleting folders.Īfter about 1 year, I stopped the paid subscription, but found out Google Drive shows 997 GB usage while there is not folder/file under “My Drive” and “Trash”. I used to upload about 10k-20k files per day to drive using ( ) client, and after every 3 months, I used to permanently (from Trash as well) delete parent folder containing those files. I had a use-case where I used to store files on my google drive account as backup option. How I managed to delete 1 billions files from my Google Drive account.
