Erase brush in Sculpt mode

No problem. I have solution to join this two parts.
I’m using Inflate brush with Strength 1


When I have such a situation

I’m using Remash with Voxel size 0.15

One question, Do You have idea how to make in Blender Python a brush who will be erasing like in my example ?