# How to delete an object in a class?

**URL:** <https://discourse.processing.org/t/how-to-delete-an-object-in-a-class/19067>\
**Category:** Coding Questions\
**Created:** [March 27, 2020, 2:14am UTC](https://discourse.processing.org/t/how-to-delete-an-object-in-a-class/19067 "2020-03-27T02:14:55Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [March 27, 2020, 5:18pm UTC](https://discourse.processing.org/t/how-to-delete-an-object-in-a-class/19067/7 "2020-03-27T17:18:10Z")

</div>

- [Problem regarding ArrayList - Processing 2.x and 3.x Forum](http://Forum.Processing.org/two/discussion/22678/problem-regarding-arraylist#Item_9)

> [@Help with a short game code](https://discourse.processing.org/t/help-with-a-short-game-code/11108/2):
>
> We can’t use method remove() when using an “enhanced” for ( : ) {} style! no_entry_sign Use a vanilla for ( ; ; ) {} style instead. Preferably, w/ backwards iteration: back

---

_[View the full topic](https://discourse.processing.org/t/how-to-delete-an-object-in-a-class/19067)._
