# clear()

Empty the commands array.

#### Returns

[Promise] - A promise that fulfills with an empty array of commands.

#### Example

```javascript
ps.clear();
```