Unable to delete triggers (google-apps-script)

前端 未结 3 1332
醉酒成梦
醉酒成梦 2021-01-06 05:33

I appear to have triggers that I cannot delete in my Google Apps Script. I have a theory as to WHY I cannot delete them, but no clue how to fix the problem. These triggers w

3条回答
  •  悲哀的现实
    2021-01-06 06:06

    Simple triggers can not be deleted from that window: See Here

    Instead add this function to your script and run it:

    function deleteTriggers() {
      var allTriggers = ScriptApp.getProjectTriggers();
      for (var i = 0; i < allTriggers.length; i++) {
        ScriptApp.deleteTrigger(allTriggers[i]);
      }
    }
    

提交回复
热议问题