# Clear()

> Sets the buffer length to zero.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public void Clear()
```

### Remarks

The capacity of the buffer remains unchanged. Buffer memory is not overwritten.
