Delete a notification

Ask the Community

How to use the notification API to remove a notification


Overview #

Delete a notification
Vanilla JavaScript:
window.CordSDK.notification.delete('my-awesome-notification-id');
window.CordSDK.notification.delete('my-awesome-notification-id');
Copy

What this function returns #

A promise that resolves to true if the operation succeeded or rejects if it failed.

Arguments this function takes #


notificationID #

required
string
The ID of the notification to delete.

Not finding the answer you need? Ask our Developer Community

Ask Cordy