docs: def reset(yes):
      """
      Remove all the datastores and the database of the current user
      """
      ok = yes or confirm('Do you really want to destroy all your data? (y/n) ')
      if not ok:
          return
  
      dbpath = os.path.realpath(os.path.expanduser(config.dbserver.file))
  
      # user must be able to access and write the databse file to remove it
      if os.path.isfile(dbpath) and os.access(dbpath, os.W_OK):
          if dbserver.get_status() == 'running':
              if config.dbserver.multi_user:
                  sys.exit('The oq dbserver must be stopped '
                           'before proceeding')
              else:
                  pid = logs.dbcmd('getpid')
                  os.kill(pid, signal.SIGTERM)
                  time.sleep(.5)  # give time to stop
                  assert dbserver.get_status() == 'not-running'
                  print('dbserver stopped')
          try:
              os.remove(dbpath)
              print('Removed %s' % dbpath)
          except OSError as exc:
              print(exc, file=sys.stderr)
  
      # fast way of removing everything
      purge_all(fast=True)