<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNUserNotificationCenter/removePendingNotificationRequests(withIdentifiers:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNUserNotificationCenter(im)removePendingNotificationRequestsWithIdentifiers:"
  },
  "title" : "removePendingNotificationRequests(withIdentifiers:)"
}
-->

# removePendingNotificationRequests(withIdentifiers:)

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

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

## Parameters

`identifiers`

An array of <doc://com.apple.documentation/documentation/Foundation/NSString> objects, each of which contains the [`identifier`](/documentation/UserNotifications/UNNotificationRequest/identifier) of an active [`UNNotificationRequest`](/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

This method executes asynchronously, removing the pending notification requests on a secondary thread.

```swift
let center = UNUserNotificationCenter.current()
center.removePendingNotificationRequests(withIdentifiers: ["com.example.mynotification"])
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)