def METHOD_NAME(*, name):
    try:
        container_id = get_container_id(name=name)
        try:
            _run_docker_command("rm", container_id)
        except CalledProcessError as error:
            if "Error: No such container" in error.stderr:
                raise ObjectDoesNotExist from error
            elif (
                f"Error response from daemon: removal of container {container_id} is already in progress"
                in error.stderr
            ):
                return
            else:
                raise
    except ObjectDoesNotExist:
        return