---
title: erase()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/qcview/erase()
---

# erase()

Clears the view using the current erase color.

## Declaration

```swift
func erase()
```

## See Also

### Managing the Erase Color

- [eraseColor()](quartz/qcview/erasecolor().md)
- [setEraseColor(_:)](quartz/qcview/seterasecolor(_:).md)
