title: How can I delete all records in a database in CouchDB?
body: <p>Is there any way that I can drop all data from a CouchDB database?</p>
  
  <p>What I'm doing currently is dropping and re-creating the whole database</p>
  
  <pre><code>curl -X DELETE http://localhost:5984/foobar
  curl -X PUT    http://localhost:5984/foobar
  </code></pre>
  
  <p>but I'm not sure if this is the best way to do this.</p>