> For the complete documentation index, see [llms.txt](https://maraudical.gitbook.io/status-effects-framework/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://maraudical.gitbook.io/status-effects-framework/type-specifics/classes/statusmanager/removestatuseffect.md).

# RemoveStatusEffect

### Declaration

{% code overflow="wrap" fullWidth="true" %}

```csharp
public static void RemoveStatusEffect(StatusEffect statusEffect)
```

{% endcode %}

### Parameters

<table data-full-width="true"><thead><tr><th width="250">Name</th><th width="250">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>statusEffect</code></td><td><a href="/pages/OpUFQnv9JKaTU0cxnlHw">StatusEffect</a></td><td>The <a href="/pages/OpUFQnv9JKaTU0cxnlHw">StatusEffect</a> reference that should be removed.</td></tr></tbody></table>

### Description

Removes a [StatusEffect](/status-effects-framework/type-specifics/classes/statuseffect.md) from the [StatusManager](/status-effects-framework/type-specifics/classes/statusmanager.md).

***

### Declaration

{% code overflow="wrap" fullWidth="true" %}

```csharp
public static void RemoveStatusEffect(StatusEffectData statusEffectData, int? stack = null)
```

{% endcode %}

### Parameters

<table data-full-width="true"><thead><tr><th width="250">Name</th><th width="250">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>statusEffectData</code></td><td><a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a></td><td>The <a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a> used by the <a href="/pages/OpUFQnv9JKaTU0cxnlHw">StatusEffect</a> that should be removed.</td></tr><tr><td><code>stack</code></td><td>int?</td><td>If an amount is given it will only remove that given number of the stack.</td></tr></tbody></table>

### Description

Removes a [StatusEffect](/status-effects-framework/type-specifics/classes/statuseffect.md) from the [StatusManager](/status-effects-framework/type-specifics/classes/statusmanager.md) that contains the given [StatusEffectData](/status-effects-framework/type-specifics/scriptable-objects/statuseffectdata.md). If a stack count is given it will remove only the specified amount.

***

### Declaration

{% code overflow="wrap" fullWidth="true" %}

```csharp
public static void RemoveStatusEffect(ComparableName name, int? stack = null)
```

{% endcode %}

### Parameters

<table data-full-width="true"><thead><tr><th width="250">Name</th><th width="250">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td><a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a></td><td>The <a href="/pages/02bLxywPwHRLDlT27aUv">ComparableName</a> name of the <a href="/pages/FzvWc4ygR9G3YZgoRwuJ">StatusEffectData</a> used by the <a href="/pages/OpUFQnv9JKaTU0cxnlHw">StatusEffect</a> that should be removed.</td></tr><tr><td><code>stack</code></td><td>int?</td><td>If an amount is given it will only remove that given number of the stack.</td></tr></tbody></table>

### Description

Removes a [StatusEffect](/status-effects-framework/type-specifics/classes/statuseffect.md) from the [StatusManager](/status-effects-framework/type-specifics/classes/statusmanager.md) that contains the given [ComparableName](/status-effects-framework/type-specifics/scriptable-objects/comparablename.md) name.
