'Remove a container from the cluster configuration.
:param unicode name: A unique identifier for the container within
the Flocker cluster.
:return: An ``EndpointResponse``.'

@app.route('/configuration/containers/<name>', methods=['DELETE'])
@user_documentation(u'\n                                This    will    lead    to    the    container    being    stopped    and    not    being\n                                restarted    again.    Any    datasets    that    were    attached    as    volumes    will\n                                continue    to    exist    on    the    cluster.\n                                ', header=u'Remove    a    container    from    the    configuration', examples=[u'remove    a    container', u'remove    a    container    with    unknown    name'], section=u'container')
@structured(inputSchema={}, outputSchema={}, schema_store=SCHEMAS)
def delete_container_configuration(self, name):

    deployment = self.persistence_service.get()
    for node in deployment.nodes.itervalues():
        application = node.applications.get(name)
        if application:
            updated_node = node.transform(['applications'], (lambda s, application=application: s.discard(application.name)))
            d = self.persistence_service.save(deployment.update_node(updated_node))
            d.addCallback((lambda _: None))
            return d
    raise CONTAINER_NOT_FOUND
