add delete shape function

Change-Id: Ided3902a45c6bb7bf79827849aeca3caaaa40f83