registry.js
function destroyDatabase(name, cb) {
  if(name === user_dbname)
    throw new Error('We never ever delete that database.')
  nano().db.destroy(name, function(err) {
    if(err && err.status_code !== 404) return cb(err)
    cb(null, err ? false : true)
  })
}
function destroyDatabase(name, cb) {
  if(name === user_dbname)
    throw new Error('We never ever delete that database.')
  nano().db.destroy(name, function(err) {
    if(err && err.status_code !== 404) return cb(err)
    cb(null, err ? false : true)
  })
}
function destroyDatabase ( name , cb ) { if ( name === user_dbname ) throw new Error ( 'We never ever delete that database.' ) nano ( ) . db . destroy ( name , function ( err ) { if ( err && err . status_code !== 404 ) return cb ( err ) cb ( null , err ? false : true ) } ) }
Destroys a database
Destroys a database