---
title: "removeUIInterruptionMonitor(_:)"
framework: xctest
role: symbol
role_heading: Instance Method
path: "xctest/xctestcase/removeuiinterruptionmonitor(_:)"
---

# removeUIInterruptionMonitor(_:)

Removes a handler using the token from when you added the handler.

## Declaration

```swift
func removeUIInterruptionMonitor(_ monitor: any NSObjectProtocol)
```

## Parameters

- `monitor`: An identifier token for an interruption monitor, obtained from a previous call to doc://com.apple.xctest/documentation/XCTest/XCTestCase/addUIInterruptionMonitor(withDescription:handler:).

## Mentioned in

Handling UI Interruptions

## See Also

### Monitoring UI Interruptions

- [Handling UI Interruptions](xctest/handling-ui-interruptions.md)
- [addUIInterruptionMonitor(withDescription:handler:)](xctest/xctestcase/adduiinterruptionmonitor(withdescription:handler:).md)
