def reset(environment, opts):
<EOL>if not opts['<STR_LIT>']:<EOL><INDENT>y_or_n_prompt('<STR_LIT>'<EOL>'<STR_LIT>'.format(opts['<STR_LIT>']))<EOL><DEDENT>print('<STR_LIT>')<EOL>environment.stop_supporting_containers()<EOL>environment.stop_ckan()<EOL>clean_pyc(environment)<EOL>saved_port = environment.port<EOL>environment.purge_data([opts['<STR_LIT>']], never_delete=True)<EOL>init({<EOL>'<STR_LIT>': opts['<STR_LIT>'],<EOL>'<STR_LIT>': opts['<STR_LIT>'],<EOL>'<STR_LIT>': saved_port,<EOL>'<STR_LIT>': None,<EOL>'<STR_LIT>': None,<EOL>'<STR_LIT>': False,<EOL>'<STR_LIT>': opts['<STR_LIT>'],<EOL>'<STR_LIT>': False,<EOL>'<STR_LIT>': opts['<STR_LIT>'],<EOL>'<STR_LIT>': None<EOL>}, no_install=True)<EOL>
Resets a site to the default state. This will re-initialize the
database and recreate the administrator account.

Usage:
  datacats reset [-iyn] [-s NAME] [ENVIRONMENT]

Options:
  -i --interactive        Don't detach from the web container
  -s --site=NAME          The site to reset [default: primary]
  -y --yes                Respond yes to all questions
  -n --no-sysadmin        Don't prompt for a sysadmin password