# Strange behaviour when removing actors

**URL:** https://discourse.vtk.org/t/strange-behaviour-when-removing-actors/3796
**Category:** Web
**Created:** [July 17, 2020, 2:01pm UTC](https://discourse.vtk.org/t/strange-behaviour-when-removing-actors/3796 "2020-07-17T14:01:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Samuel\_James](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@Samuel\_James](https://discourse.vtk.org/u/Samuel_James)
#### Post date: [July 17, 2020, 2:01pm UTC](https://discourse.vtk.org/t/strange-behaviour-when-removing-actors/3796/1 "2020-07-17T14:01:06Z")

</div>

Hi Everyone,  
First can I say that I’m new to React and VTK so apologies for my lack of knowledge.

I’ve created some simple code that adds actors and removes all actors. When removing all actors the render does not remove them, but by making a call to getActors() on the renderer, it then updates.

Code: [https://pastebin.com/a2NSGtK0](https://pastebin.com/a2NSGtK0)  
Sam

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [July 22, 2020, 5:05pm UTC](https://discourse.vtk.org/t/strange-behaviour-when-removing-actors/3796/2 "2020-07-22T17:05:49Z")

</div>

Hi, you can use `renderer.current.removeAllViewProps()` to remove all scene objects. I will check to see if `removeAllActors()` has a bug.
