@bow.command()<EOL>@click.argument('<STR_LIT:name>')<EOL>def rm(name):
path = get_existing_project_path(name)<EOL>click.confirm(<EOL>'<STR_LIT>' % name, abort=True)<EOL>container_name = get_container_name(name)<EOL>client = docker.Client()<EOL>try:<EOL><INDENT>client.inspect_container(container_name)<EOL><DEDENT>except docker.errors.NotFound:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>" % container_name)<EOL>client.remove_container(container_name, v=True, force=True)<EOL><DEDENT>print("<STR_LIT>" % path)<EOL>shutil.rmtree(path)<EOL>
Remove an existing project and its container.