This is a wrapper around calls to ga_users_list and ga_users_delete_linkid. If you want more fine-grained control look at those functions.
The user email is deleted from all web properties and views underneath the accountId you provide.
ga_users_delete(email, accountId)
The email of the user to delete
The accountId that the user will be deleted from including all web properties and Views underneath.
This deletes a user via their email reference for all webproperties and views for the account given.
Other User management functions:
ga_users_add()
,
ga_users_delete_linkid()
,
ga_users_list()
,
ga_users_update()
if (FALSE) {
library(googleAnalyticsR)
ga_auth()
ga_users_delete("brian@agency.com", 12345678)
# multiple emails
ga_users_delete(c("brian@agency.com", "bill@benland.com"), 1234567)
}