Instance Method


Removes the specified notification requests from Notification Center.


func removeDeliveredNotifications(withIdentifiers identifiers: [String])



An array of NSString objects, each of which corresponds to a value in the identifier property of a UNNotificationRequest object. This method ignores the identifiers of requests whose notifications are not currently displayed in Notification Center.


Use this method to selectively remove notifications that you no longer want displayed in Notification Center. The method executes asynchronously, returning immediately and removing the specified notifications on a background thread.

See Also

Managing Delivered Notifications

func getDeliveredNotifications(completionHandler: ([UNNotification]) -> Void)

Returns a list of the app’s notifications that are still displayed in Notification Center.

func removeAllDeliveredNotifications()

Removes all of the app’s delivered notifications from Notification Center.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software