---
title: "removePendingNotificationRequests(withIdentifiers:)"
framework: usernotifications
role: symbol
role_heading: Instance Method
path: "usernotifications/unusernotificationcenter/removependingnotificationrequests(withidentifiers:)"
---

# removePendingNotificationRequests(withIdentifiers:)

Removes your app’s local notifications that are pending and match the specified identifiers.

## Declaration

```swift
func removePendingNotificationRequests(withIdentifiers identifiers: [String])
```

## Parameters

- `identifiers`: An array of doc://com.apple.documentation/documentation/Foundation/NSString objects, each of which contains the doc://com.apple.usernotifications/documentation/UserNotifications/UNNotificationRequest/identifier of an active doc://com.apple.usernotifications/documentation/UserNotifications/UNNotificationRequest object. If the identifier belongs to a non repeating request, and the trigger condition for that request has already been met, this method ignores the identifier.

## Discussion

Discussion This method executes asynchronously, removing the pending notification requests on a secondary thread. let center = UNUserNotificationCenter.current() center.removePendingNotificationRequests(withIdentifiers: ["com.example.mynotification"])

## See Also

### Scheduling notifications

- [add(_:withCompletionHandler:)](usernotifications/unusernotificationcenter/add(_:withcompletionhandler:).md)
- [getPendingNotificationRequests(completionHandler:)](usernotifications/unusernotificationcenter/getpendingnotificationrequests(completionhandler:).md)
- [removeAllPendingNotificationRequests()](usernotifications/unusernotificationcenter/removeallpendingnotificationrequests().md)
