---
title: removeAllPendingNotificationRequests()
framework: usernotifications
role: symbol
role_heading: Instance Method
path: usernotifications/unusernotificationcenter/removeallpendingnotificationrequests()
---

# removeAllPendingNotificationRequests()

Removes all of your app’s pending local notifications.

## Declaration

```swift
func removeAllPendingNotificationRequests()
```

## Discussion

Discussion This method executes asynchronously, removing all pending notification requests on a secondary thread. let center = UNUserNotificationCenter.current() center.removeAllPendingNotificationRequests()

## See Also

### Scheduling notifications

- [add(_:withCompletionHandler:)](usernotifications/unusernotificationcenter/add(_:withcompletionhandler:).md)
- [getPendingNotificationRequests(completionHandler:)](usernotifications/unusernotificationcenter/getpendingnotificationrequests(completionhandler:).md)
- [removePendingNotificationRequests(withIdentifiers:)](usernotifications/unusernotificationcenter/removependingnotificationrequests(withidentifiers:).md)
