title: Delete a record from console -- Ruby on Rails
body: <p>I want to delete a record from the console. </p>
  
  <p>I logged through script/console and</p>
  
  <pre><code>User.find(1).delete
  $&lt;User id: 1, ..............&gt;
  User.find(1)
  ActiveRecord::RecordNotFound: Couldn't find User with ID=1
  ........
  ........
  ........
  </code></pre>
  
  <p>Everything looks fine till here.</p>
  
  <p>But when I exit the console and return back to console by script/console command, I am able again to see the record with id = 1.</p>
  
  <p>The database is not local and I'm connecting through database.yml by giving an ip.</p>
  
  <p>when I try to do the same on the development local database, everything is fine.</p>
  
  <p>Can someone please explain whats happening and where am I missing!</p>
  
  <p>Thanks</p>