---
title: "removeNotifications(withIdentifiers:sourceIdentifier:)"
framework: accessorynotifications
role: symbol
role_heading: Instance Method
path: "accessorynotifications/notificationsforwarding/accessorynotificationssession/removenotifications(withidentifiers:sourceidentifier:)"
---

# removeNotifications(withIdentifiers:sourceIdentifier:)

Removes notifications using primitive identifier components.

## Declaration

```swift
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

Discussion This method provides an alternative way to remove notifications using string identifiers rather than AccessoryNotification.Identifier instances.

## See Also

### Removing notifications

- [removeNotifications(identifiers:)](accessorynotifications/notificationsforwarding/accessorynotificationssession/removenotifications(identifiers:).md)
