Version: Smart Feature Phone 2.5

remove

The remove method is used to retrieve a list of pending alarms.

Syntax#

navigator.mozAlarms.remove(id);

Properties#

id - A number representing the id of the alarm to be removed.

Return#

None.

Example#

var request = navigator.mozAlarms.getAll();
request.onsuccess = function() {
// Remove all pending alarms
this.result.forEach(function(alarm) {
navigator.mozAlarms.remove(alarm.id);
});
};
request.onerror = function() {
console.log('operation failed: ' + this.error);
};