<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def removeActor(self, a):
 """Remove ``vtkActor`` or actor index from current renderer."""

        if not self.initializedPlotter:
            save_int = self.interactive
            self.show(interactive=0)
            self.interactive = save_int
            return
        if self.renderer:
            self.renderer.RemoveActor(a)
            if hasattr(a, 'renderedAt'):
                ir = self.renderers.index(self.renderer)
                a.renderedAt.discard(ir)
        if a in self.actors:
            i = self.actors.index(a)
            del self.actors[i]