> For the complete documentation index, see [llms.txt](https://docs.airship.gg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airship.gg/unity-for-airship/easy-helper-utils/easy-destroy.md).

# Easy Destroy

A c# component that destroys or disables the GameObject it is on

<figure><img src="https://214663474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbaXflSJA8L9N9yOx089%2Fuploads%2FII1sP3AsNzbsW0OIkSVB%2Fimage.png?alt=media&amp;token=04f2f0d0-0ba4-447e-8cf3-b6cb5a522ac2" alt="" width="301"><figcaption></figcaption></figure>

Attach to any GameObject you want destroyed or disabled after X seconds

{% hint style="info" %}
Useful for prefabs that are temporary, such as VFX. Just attach it to the prefab and it will destroy itself when its done with the effect.&#x20;
{% endhint %}
