---
title: clear()
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: carekit/ocklistviewcontroller/clear()
---

# clear()

Removes all displayed views without animation.

## Declaration

```swift
func clear()
```

## See Also

### Removing from the list

- [remove(at:)](carekit/ocklistviewcontroller/remove(at:).md)
