Created
June 20, 2019 19:14
-
-
Save supernovaplus/835ce4888938314e202fa0f39c2ca19e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function DeleteAllTriggers() { | |
var allTriggers = ScriptApp.getProjectTriggers(); | |
if(allTriggers.length<1)return Logger.log("list is empty"); | |
Logger.log("Deleted => "+allTriggers.length); | |
for (var i = 0; i < allTriggers.length; i++) { | |
ScriptApp.deleteTrigger(allTriggers[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment