'Remove a container.
:param unicode name: The name of the container to remove.
:returns: A ``Deferred`` which fires with an API response when the
container removal has been persisted to the cluster configuration.'

@log_method
def remove_container(self, name):

    request = self.treq.delete(((self.base_url + '/configuration/containers/') + name.encode('ascii')))
    request.addCallback(check_and_decode_json, OK)
    return request
