title: Delete all records from a table except latest N months records (sorted by id)
body: <p>Can anyone please help me in solving this. Only I need is to keep the latest 3 months records in table. </p>
  
  <p>Table Structure:</p>
  
  <p><a href="https://i.stack.imgur.com/ub6GM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ub6GM.jpg" alt="enter image description here"></a></p>
  
  <p>After Purge my table should look like this </p>
  
  <p><a href="https://i.stack.imgur.com/yLrNY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yLrNY.jpg" alt="enter image description here"></a></p>