I go to https://script.google.com/ and want to use Google Apps Script and a trigger to automatically clean my Google Drive Trash once an hour.
I read on the forum that I need to enable the Google Drive API - I did it.
I'm only logged into one Google account.
I run the script
function emptyThrash() { Drive.Files.emptyTrash(); }
and wait for the trash in my Google Drive to be emptied
But when I run the script to check, I get an error enter image description here
Why is the trash not clearing? Maybe Google has changed something and now I need to use a different code to empty the trash?