code: def rm(name):
      
      path = get_existing_project_path(name)
  
      click.confirm(
          'Are you sure you want to delete project %s?' % name, abort=True)
  
      container_name = get_container_name(name)
      client = docker.Client()
      try:
          client.inspect_container(container_name)
      except docker.errors.NotFound:
          pass
      else:
          print("Removing container %s..." % container_name)
          client.remove_container(container_name, v=True, force=True)
  
      print("Removing %s..." % path)
      shutil.rmtree(path)
docs: Remove an existing project and its container.