if (FALSE) {
library(googleAnalyticsR)
ga_auth()
# get the linkId for the user you want to delete
ga_users_list(47480439, webPropertyId = "UA-47480439-2", viewId = 81416156)
ga_users_delete_linkid("81416156:114834495587136933146",
accountId = 47480439,
webPropertyId = "UA-47480439-2",
viewId = 81416156)
# check its gone
ga_users_list(47480439, webPropertyId = "UA-47480439-2", viewId = 81416156)
# can only delete at level user has access, the above deletion woud have failed if via:
ga_users_delete_linkid("47480439:114834495587136933146", 47480439)
}
Run the code above in your browser using DataLab