Skip to content

Instantly share code, notes, and snippets.

@Diana-Pham
Created April 6, 2016 01:05
Show Gist options
  • Save Diana-Pham/0a27ee273eb9e3cf5e1ba7555dd0a052 to your computer and use it in GitHub Desktop.
Save Diana-Pham/0a27ee273eb9e3cf5e1ba7555dd0a052 to your computer and use it in GitHub Desktop.
Deletes all triggers in Script editor
function deleteAllTriggers ()
{
// Deletes all triggers in the current project.
var triggers = ScriptApp.getProjectTriggers();
for (var i = 0; i < triggers.length; i++) {
ScriptApp.deleteTrigger(triggers[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment