Clearing the canvas in the shapes starting point

I am using the shapes starting point and i need to clear the canvas, i have tried editing the starting point in xcode to create a clear func but im having some difficulty. Is there a clear canvas function? If not, can someone help me edit the starting point to get one?

Clearing the canvas in the shapes starting point
 
 
Q