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 =;

But when I try to use this Script with AoDocs file library i get error 

  DriveApp - access denied at row 


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.




1 comment

Please sign in to leave a comment.

Didn't find what you were looking for?

New post