Skip to content

Instantly share code, notes, and snippets.

Avatar

Şansal AKMA sansal

  • Turkey
View GitHub Profile
View gist:93da43063528d75a33f4d850b3829b4b
function OtomatikSil () {
var threads;
var thread;
threads = GmailApp.search("older_than:10d");
for(var i = 0; i < threads.length; i++)
{
var thread = threads[i];
GmailApp.moveThreadToTrash(thread);
}