def METHOD_NAME():
    """Delete groups."""
    group_ids = get_resource_ids(request.json, 'groups')
    # Check permissions first
    for group_id in group_ids:
        get_group_info(group_id, need_admin=True)
    # Delete groups
    for group_id in group_ids:
        local.model.delete_group(group_id)
    abort(http.client.NO_CONTENT)