Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ga_users_delete

Delete all user access for an email


Description

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.

Usage

ga_users_delete(email, accountId)

Arguments

email

The email of the user to delete

accountId

The accountId that the user will be deleted from including all web properties and Views underneath.

Details

This deletes a user via their email reference for all webproperties and views for the account given.

See Also

Other User management functions: ga_users_add(), ga_users_delete_linkid(), ga_users_list(), ga_users_update()

Examples

## Not run: 

library(googleAnalyticsR)
ga_auth()
ga_users_delete("brian@agency.com", 12345678)

# multiple emails
ga_users_delete(c("brian@agency.com", "bill@benland.com"), 1234567)


## End(Not run)

googleAnalyticsR

Google Analytics API into R

v1.0.0
MIT + file LICENSE
Authors
Mark Edmondson [aut, cre] (<https://orcid.org/0000-0002-8434-3881>), Artem Klevtsov [ctb], Johann deBoer [ctb], David Watkins [ctb], Olivia Brode-Roger [ctb], Jas Sohi [ctb], Zoran Selinger [ctb], Octavian Corlade [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.