---
title: "remove(_:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skpaymentqueue/remove(_:)"
---

# remove(_:)

Removes an observer from the payment queue.

## Declaration

```swift
func remove(_ observer: any SKPaymentTransactionObserver)
```

## Parameters

- `observer`: The observer to remove.

## Discussion

Discussion If there are no observers attached to the queue, the payment queue does not synchronize its list of pending transactions with the Apple App Store, because there is no observer to respond to updated transactions.

## See Also

### Related Documentation

- [transactions](storekit/skpaymentqueue/transactions.md)

### Adding, Getting, and Removing Observers

- [add(_:)](storekit/skpaymentqueue/add(_:)-5ciz2.md)
- [transactionObservers](storekit/skpaymentqueue/transactionobservers.md)
