Removes an existing trigger.
class ScriptApp method .deleteTrigger()
ScriptApp is the Apps Script service.
.deleteTrigger() is the method name you will see after a dot in your code.
What it does
Why it's used
- Remove old triggers when you change schedule.
- Clean up after uninstalling a feature.
Common errors
- Forgetting parentheses on deleteTrigger. Write ScriptApp.deleteTrigger(), not ScriptApp.deleteTrigger or deleteTrigger by itself.
- Skipping dots between chained calls. Each step needs a dot, like ScriptApp.deleteTrigger().
- Adding spaces where they do not belong. Write ScriptApp.deleteTrigger(), not ScriptApp .deleteTrigger(), ScriptApp.deleteTrigger (), or ScriptApp . deleteTrigger().
- Wrong capitalization. Use ScriptApp and deleteTrigger, not scriptapp or deletetrigger.
Explore
Related methods
-
.newTrigger()
Creates a new trigger that runs a function on a schedule or event.
-
.getProjectTriggers()
Returns all triggers set up in the script project.
-
.invalidateAuth()
Clears stored authorization so the user must approve access again.
-
.getScriptId()
Returns the unique ID of the current script project.
-
.getAuthorizationInfo()
Returns what permissions the script has been granted.
More Apps Script
Better Sheets tutorials
No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.
Related blog posts
Written guides about ScriptApp.deleteTrigger().
Automate Row Deletion in Google Sheets with Apps Script
In this post, we'll cover how to remove rows automatically in Google Sheets using Apps Script, ensuring you save time and streamline your spreadsheet management. You're probably already familiar with the manual way of right-clicking and deleting rows, but there's a more efficient way to handle this—automation! Manual versus Semi-Automatic Deletion You may know that you can manually delete rows in Google Sheets by right-clicking and selecting "Delete row." You can even select multiple rows...
Read post →How to Send Google Forms Entries Automatically with Apps Script
Google Forms provides basic email notifications for form submissions, but enhancing these notifications with detailed summaries can significantly improve productivity and response management.
Read post →What Can You Automate in Google Sheets? Every single trigger available to Google Sheet users
Make your data tasks simpler & efficient. Discover the power of automation in Google Sheets with a comprehensive guide that covers everything from triggers to scripts.
Read post →