Destroy part of the sprite that is being overlaped

Hello everyone.
Is it possible to update in realtime, the collision box and the sprite itself after it is being overlaped by another sprite? The part of the sprite that is being overlaped, is going to be destroyed, and its collision update. Pics for explanation in detail:

729bfe4667166fb996aafb205a90129323e362e3.jpeg