# Array.clear ## Function Clear the array and return the original array object. ## Syntax ```bt array.clear() ``` ## Parameters No parameters. ## Return value | Type | Description | | ------ | ------ | | Array | Returns the original array object. | ## Example ```bt items = [1, 2, 3] items.clear() // Output: 0 echo(items.len()) ``` ## Notes - clear will modify the original array. - clear will reuse array objects, which is suitable for scenarios where writing continues after clearing in a resident process.