How do I erase with the shape painter?

Very simple question : Is it possible to make a sort-of “eraser” tool to erase what i draw with the shape painter?

I’m challenging myself to attempt to make an animation program within GDevelop. Right now, I’m just getting a basic drawing system down. However, I don’t know if it’s possible to erase with the shape painter.

If I wanted to erase this drawing, how would I manage to do so without just drawing over it with the color of the background?