Automaticaly cleanup folder daily (by triger)
Hello, Everyone.
I need an help. With the simple Google Drive, it's possible to organize such Google Script:
function CleanUP() {
var files = DriveApp.getFolderById('myfolderid').getFiles();
while (files.hasNext()) {
var file = files.next();
file.setTrashed(true);
Logger.log(file.getName());
}
}
But when I try to use this Script with AoDocs file library i get error
DriveApp - access denied at row
file.setTrashed(true)
So, how to solve it?
I need - my AoDocs folder should be cleanup daily...
If someone knows any ideas - please share with me.
Thank you.
Comments
Hey Bud, did you get answer to your problem? facing the same issue
Please sign in to leave a comment.