Delete all segments from the shape.
If the operation ends correctly it returns true otherwise it returns false.