Class GmailLabel | Apps Script | Google Developers Removes this label from the given threads and forces the threads to refresh. You can remove labels for up to 100 threads per batch. // remove the label MyLabel from the first three threads in the inbox var label = GmailApp.getUserLabelByName("MyLabel"); var threads = GmailApp.getInboxThreads(0,3); label.removeFromThreads(threads); Parameters