Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/alarms/clearall/index.md
6581 views
------{{AddonSidebar()}}
Cancels all active alarms.
This is an asynchronous function that returns a Promise.
Syntax
Parameters
None.
Return value
A Promise that will be fulfilled with a boolean. This will be true if any alarms were cleared, false otherwise. Note that Chrome always passes true here.
Examples
{{WebExtExamples}}
Browser compatibility
{{Compat}}
Note: This API is based on Chromium's
chrome.alarmsAPI.