Manually destorying a page

Anybody have a way to manually destroy a page, essentially I wanted to destroy a specific page when the app goes into background

I am rebuilding this page and its connections to an Observable websocket call on platform.resume. Just wanted to make sure the page also gets destroyed but wasn’t sure what the code to destroy a page is

Something like this on the page but need the code to destroy:

   ngOnInit() {
        //after app comes from background, this resume fires!
        this.platform.pause.subscribe((x) => {
           **//destroy code here**
            error => {
                console.log("platform resume error");