def METHOD_NAME(
    make_organization_and_user_with_plugin_token,
    make_user_auth_headers,
    role,
    expected_status,
):
    organization, user, token = make_organization_and_user_with_plugin_token(role)
    instance, _ = UserScheduleExportAuthToken.create_auth_token(
        user=user,
        organization=organization,
    )
    url = reverse("api-internal:user-export-token", kwargs={"pk": user.public_primary_key})
    client = APIClient()
    response = client.delete(url, format="json", **make_user_auth_headers(user, token))
    assert expected_status == response.status_code
    if response.status_code != 403:
        check_token = UserScheduleExportAuthToken.objects.filter(id=instance.id)
        assert len(check_token) == 0