# RemoveStatusEffect

### Declaration

public static void **RemoveStatusEffect**([StatusEffect](https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/classes/statuseffect) statusEffect)

### Parameters

<table data-header-hidden data-full-width="false"><thead><tr><th width="224"></th><th></th></tr></thead><tbody><tr><td>statusEffect</td><td>The <a href="../statuseffect">StatusEffect</a> reference that should be removed.</td></tr></tbody></table>

### Description

Removes a [StatusEffect](https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/classes/statuseffect) from a given [MonoBehaviour](https://docs.unity3d.com/ScriptReference/MonoBehaviour.html).

***

### Declaration

public static void **RemoveStatusEffect**([StatusEffectData](https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/scriptable-objects/statuseffectdata) statusEffectData, int? stack = null)

### Parameters

<table data-header-hidden data-full-width="false"><thead><tr><th width="224"></th><th></th></tr></thead><tbody><tr><td>statusEffectData</td><td>The <a href="../../scriptable-objects/statuseffectdata">StatusEffectData</a> used by the <a href="../statuseffect">StatusEffect</a> that should be removed.</td></tr><tr><td>stack</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](https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/classes/statuseffect) from a given [MonoBehaviour](https://docs.unity3d.com/ScriptReference/MonoBehaviour.html) that contains the given [StatusEffectData](https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/scriptable-objects/statuseffectdata). If a stack count is given it will remove only the specified amount.

***

### Declaration

public static void **RemoveStatusEffect**([ComparableName](https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/scriptable-objects/comparablename) name, int? stack = null)

### Parameters

<table data-header-hidden data-full-width="false"><thead><tr><th width="224"></th><th></th></tr></thead><tbody><tr><td>name</td><td>The <a href="../../scriptable-objects/comparablename">ComparableName</a> name of the <a href="../../scriptable-objects/statuseffectdata">StatusEffectData</a> used by the <a href="../statuseffect">StatusEffect</a> that should be removed.</td></tr><tr><td>stack</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](https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/classes/statuseffect) from a given [MonoBehaviour](https://docs.unity3d.com/ScriptReference/MonoBehaviour.html) that contains the given [ComparableName](https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/scriptable-objects/comparablename) name.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://maraudical.gitbook.io/status-effect-framework/1.6.0/type-specifics/classes/statusmanager/removestatuseffect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
