Can Anyone help me--Clearing drawn shape

Hi,
Thanks in Advance.

I want to erase the shape which is unclosed one to be erased when i pressed the erase button ,Is it Correct with Createemptymovieclip also