<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "XCTest",
  "identifier" : "/documentation/XCTest/XCTestCase/removeUIInterruptionMonitor(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "XCTest"
    ],
    "preciseIdentifier" : "c:objc(cs)XCTestCase(im)removeUIInterruptionMonitor:"
  },
  "title" : "removeUIInterruptionMonitor(_:)"
}
-->

# removeUIInterruptionMonitor(_:)

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

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

## Parameters

`monitor`

An identifier token for an interruption monitor, obtained from a previous call to [`addUIInterruptionMonitor(withDescription:handler:)`](/documentation/XCTest/XCTestCase/addUIInterruptionMonitor(withDescription:handler:)).

## Discussion

---

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)