Remove All Flight Alert


#1

Hello,

How can I remove all flight alerts ?

Thank you,
Vedang.


#2

You can delete alerts with the DeleteAlert method. To delete all of your alerts call GetAlerts then iterate over the result passing each alertId into DeleteAlert. Here is some pseudocode:



alerts = GetAlerts();
foreach (alert in alerts) {
    result = DeleteAlert(alert.getAlertId());
    // If the result is 0 notify that the delete failed.
}



#3

uh… is this a forum for developers? Is there away to delete/stop alerts that a normal user can implement?

thanks