'Attempt to remove a container.
Assumes the given container has already been stopped.
:param unicode container_name: The fully-namespaced name of the
container.
:return: True if we removed the container, False otherwise.'

def _remove_container(self, container_name):

    try:
        self._client.wait(container_name)
        with start_action(action_type='flocker:docker:container_remove', container=container_name):
            self._client.remove_container(container_name)
    except APIError as e:
        if (e.response.status_code == NOT_FOUND):
            return True
        elif (e.response.status_code == INTERNAL_SERVER_ERROR):
            return False
        else:
            raise
    return True
