How to clear state when statesave page no longer exists in datatables?
<p>My datatables is declared in this way:</p>

<pre><code>"processing": true
,"serverSide": true
,"stateSave":true
,"stateDuration": 60*60*24
,"ajax":{
   "url":"/approval/search.json"
   ,"type":"post"
}
</code></pre>

<p>My code to clear state:</p>

<pre><code>if(page doesn't exist){
  table.state.clear();
  table.draw()
}
</code></pre>

<p>I don't know how to tell if page doesn't exist. I've tried table.page.info() but the data it shows is the same whether the page has info or not. </p>