def METHOD_NAME(request):
    try:
        ids = request.POST.getlist('ids[]')
        lists = {}
        auth = AuthSession(request.session)
        client = auth.get_clientFactory()
        client.create_api_vrf().delete(ids)
        vrfs = client.create_api_vrf().search()["vrfs"]
        lists['vrfs'] = vrfs
    except NetworkAPIClientError, e:
        logger.error(e)
        messages.add_message(request, messages.ERROR, e)
    return render_to_response(VRF_LIST, lists, context_instance=RequestContext(request))