title: How to clear webrequestsession sessions created using sessionvariable parameter in Invoke-RestMethod
body: <p>I need to clear the sessions created using Invoke-RestMethod.</p>
  
  <p>Sessions stored in ws variable in below line. </p>
  
  <pre><code>Invoke-RestMethod -Method Post -Uri $page -Body $Params -sessionvariable ws
  </code></pre>