Skip to content

Instantly share code, notes, and snippets.

View sansal's full-sized avatar

Şansal AKMA sansal

  • Turkey
View GitHub Profile
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);
}