def execute(helper, config, args):
env_config = parse_env_config(config, args.environment)<EOL>environments_to_wait_for_term = []<EOL>environments = helper.get_environments()<EOL>for env in environments:<EOL><INDENT>if env['<STR_LIT>'] == args.environment:<EOL><INDENT>if env['<STR_LIT>'] != '<STR_LIT>':<EOL><INDENT>out("<STR_LIT>" + env['<STR_LIT>']<EOL>+ "<STR_LIT>"<EOL>+ env['<STR_LIT>'] + "<STR_LIT:)>")<EOL><DEDENT>else:<EOL><INDENT>out("<STR_LIT>"+env['<STR_LIT>'])<EOL>helper.delete_environment(env['<STR_LIT>'])<EOL>environments_to_wait_for_term.append(env['<STR_LIT>'])<EOL><DEDENT><DEDENT><DEDENT>if not args.dont_wait:<EOL><INDENT>helper.wait_for_environments(environments_to_wait_for_term,<EOL>status='<STR_LIT>',<EOL>include_deleted=True)<EOL><DEDENT>out("<STR_LIT>")<EOL>return <NUM_LIT:0><EOL>
Deletes an environment