clear everything from the cache/Dom in jquery mobile
===

Hi I am developing application using jquery mobile. I have multiple html pages in my application suppose I navigate from page 1 to2 to 3..... In every transition I got response from server. If response from server starts with 0 (eg.0$name^lastname^city$) then I navigate to next page. But suppose response starts from -1 then I have to display login page to user. I can check response and if it starts with -1 then I call `$.mobile.changePage('UI/demo/login.html')`  but now I want to remove all pages which are present in dom, because if I dont remove them then again on back press they will display. How to clear dom.

Any suggestion will be appreciated. Thanks in advance.