How to auto-remove files from trash in Google Drive
If you're using Google Drive to store your CCTV video recordings, you're probably also using it to sync those recordings to the cloud (you rotate recordings every x days). However, as you remove more and more files, your trash folder can fill up, leaving your Google Drive crying out for free space.
Fortunately, there's a simple solution to this problem: you can automatically remove files from the trash in Google Drive.
Here's how:
1. Go to https://script.google.com/ and create a new file
2. Enable Google Drive API by clicking Services -> Select Drive API -> Click button Add
3. Click Run and then Review permissions. You will see a new popup to add permissions to your script, so select an account and then you will see "This app isn’t verified". Click Advanced, then click Go to XXXX Project (unsafe).
Voila! All files pushed to the trash will now be emptied every hour. You can go to Triggers to see that on the list.
Now you can focus on storing and syncing your video without worrying about managing your recycle bin in Google Drive.
Happy removing!