---
title: clear
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/storage/1627404-clear
---

# clear

Removes all instances of key-value pairs from the storage list.

## Declaration

```data
void clear();
```

## See Also

### Accessing Key-Value Pair Information

- [getItem](tvmljs/storage/1627333-getitem.md)
- [key](tvmljs/storage/1627380-key.md)
- [length](tvmljs/storage/1627448-length.md)
- [removeItem](tvmljs/storage/1627332-removeitem.md)
- [setItem](tvmljs/storage/1627302-setitem.md)
