# ArrayClear()

Removes all elements from an array.

```
ArrayClear( array=array );
```

**Returns:** boolean

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| array | array | Yes | Name of an array |  |

# Examples

```1
// Creates an array containing 4 elements with the numbers 1 - 4.
numbers = [ 1, 2, 3, 4 ];
dump( numbers ); // outputs the array containing 1 - 4

// Clears the array leaving an array with 0 elements.
ArrayClear( numbers );
dump( numbers ); // outputs the empty array
```







# Categories

[Arrays](../../categories/array.md)

# See Also

[array.clear()](../objects/array/clear.md)