Learn R Programming

googleAnalyticsR (version 1.2.0)

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

Google Documentation

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

Examples

Run this code

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)

}

Run the code above in your browser using DataLab