---
title: removeAll()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/outputrawspan/removeall()
---

# removeAll()

Remove all this span’s elements and return its memory to the uninitialized state.

## Declaration

```swift
mutating func removeAll()
```
