---
title: removeDocument
framework: tvmljs
role: symbol
role_heading: Instance Method
path: tvmljs/navigationdocument/1627394-removedocument
---

# removeDocument

Removes the specified document from the stack.

## Declaration

```data
void removeDocument(
    in Document document
);
```

## Parameters

- `document`: A DOM document created by parsing a TVML file.

## See Also

### Removing Documents from the Stack

- [clear](tvmljs/navigationdocument/1627312-clear.md)
- [popDocument](tvmljs/navigationdocument/1627397-popdocument.md)
- [popToDocument](tvmljs/navigationdocument/1627420-poptodocument.md)
- [popToRootDocument](tvmljs/navigationdocument/1627382-poptorootdocument.md)
