<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryNotifications",
  "identifier" : "/documentation/AccessoryNotifications/NotificationsForwarding/AccessoryNotificationsSession/removeNotifications(withIdentifiers:sourceIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accessory Notifications",
      "AccessoryNotifications"
    ],
    "preciseIdentifier" : "s:22AccessoryNotifications0B10ForwardingC0aB7SessionPAAE06removeB015withIdentifiers16sourceIdentifierySaySSG_SStYaKF"
  },
  "title" : "removeNotifications(withIdentifiers:sourceIdentifier:)"
}
-->

# removeNotifications(withIdentifiers:sourceIdentifier:)

Removes notifications using primitive identifier components.

```
func removeNotifications(withIdentifiers identifiers: [String], sourceIdentifier: String) async throws
```

## Parameters

`identifiers`

A set of notification identifier strings.

`sourceIdentifier`

The bundle identifier of the app that posted the notifications.

## Discussion

This method provides an alternative way to remove notifications using string identifiers rather than [`AccessoryNotification.Identifier`](/documentation/AccessoryNotifications/AccessoryNotification/Identifier-swift.struct) instances.

---

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)