iOS UIBezierPath生成的路线如何删除

iOS UIBezierPath生成的路线如何删除,生成线的代码如下:

self.path = [UIBezierPath bezierPath];
[self.path moveToPoint:from];
[self.path addLineToPoint:to];
self.pathLayer = [CAShapeLayer layer];
self.pathLayer.frame = containerView.bounds;
self.pathLayer.path = self.path.CGPath;
self.pathLayer.strokeColor = color.CGColor;
self.pathLayer.lineWidth = 2.0f;
self.pathLayer.lineJoin = kCALineJoinBevel;

NSMutableArray *ary = [NSMutableArray arrayWithArray:shapeLayers];
[ary addObject:self.pathLayer];
shapeLayers = [NSMutableArray arrayWithArray:ary];
[containerView.layer addSublayer:self.pathLayer];

删除线 具体是指什么 你如果不想用那个 路径 那把那个路径的层 删除就好了

就是画了一些线,删除之前画的,再重新画

图片说明
这不是有方法吗