---
title: "removeGlobalAssertion"
description: "Removes a named assertion from the collection of assertions to be executed before test actions."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** This API has been removed and its intended usage to run accessibility checks can now be done via `ComposeUiTest.disableAccessibilityChecks()` and `ComposeTestRule.disableAccessibilityChecks()`

```kotlin
@ExperimentalTestApi
fun removeGlobalAssertion(name: String)
```


Removes a named assertion from the collection of assertions to be executed before test actions.

#### Parameters

| | |
| --- | --- |
| name | An identifier that was previously used in a call to `addGlobalAssertion`. |




