def delete_container(request, container):

    storage_url = request.session.get('storage_url', '')
    auth_token = request.session.get('auth_token', '')

    try:
        _m, objects = client.get_container(storage_url, auth_token, container)
        for obj in objects:
            client.delete_object(storage_url, auth_token,
                                 container, obj['name'])
        client.delete_container(storage_url, auth_token, container)
        messages.add_message(request, messages.INFO, _("Container deleted."))
    except client.ClientException:
        messages.add_message(request, messages.ERROR, _("Access denied."))

    return redirect(containerview)
Replicate changes from the source database to the target database.
dataset/ETHPy150Open cschwede/django-swiftbrowser/swiftbrowser/views.py/delete_container--crossover with--dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/Server.replicate