Erase

hi,

i am creating a drawing application in which i need to implement erase tool.

i don’t know how to proceed with the erase tool.

please guide me in this regard. i just want to know how to make vector erasing