# DestroyObject

**URL:** <https://discussions.unity.com/t/destroyobject/677623>\
**Category:** Scripting\
**Tags:** Scripting\
**Created:** [September 20, 2017, 3:33pm UTC](https://discussions.unity.com/t/destroyobject/677623 "2017-09-20T15:33:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Brathnann](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@Brathnann](https://discussions.unity.com/u/Brathnann)\
**Post date:** [September 20, 2017, 3:35pm UTC](https://discussions.unity.com/t/destroyobject/677623/2 "2017-09-20T15:35:49Z")

</div>

You have a semicolon after your DestroyObjectDelayed()  
It shouldn’t be there.

Also make sure you have your brackets { } for your class. You might just have not posted them here, but just in case.

And use code tags when asking for script help [Using code tags properly](https://discussions.unity.com/t/481379)

---

_[View the full topic](https://discussions.unity.com/t/destroyobject/677623)._
