---
title: clear
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/navigationdocument/1627312-clear
---

# clear

Removes all documents currently on the stack.

## Declaration

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

## Discussion

Discussion No animations are performed when this function is called. All documents currently on the stack are immediately removed.

## See Also

### Removing Documents from the Stack

- [popDocument](tvmljs/navigationdocument/1627397-popdocument.md)
- [popToDocument](tvmljs/navigationdocument/1627420-poptodocument.md)
- [popToRootDocument](tvmljs/navigationdocument/1627382-poptorootdocument.md)
- [removeDocument](tvmljs/navigationdocument/1627394-removedocument.md)
