googlesheets (version 0.2.1)

gs_perm_delete: Delete a permission from a spreadsheet

Description

Identify the permission to be deleted via email or permission ID.

Usage

gs_perm_delete(ss, email = NULL, perm_id = NULL, verbose = TRUE)

Arguments

ss
a registered Google spreadsheet, i.e. a googlesheet object
email
The email address or domain name for the entity.
perm_id
The ID for the permission.
verbose
logical; do you want informative messages?

Examples

Run this code
## Not run: 
# foo <- gs_new("foo")
# gs_perm_ls(foo)
# # Add anyone as a reader:
# gs_perm_add(foo, type = "anyone", role = "reader")
# gs_perm_ls(foo)
# # Remove the permission for anyone
# gs_perm_delete(foo, perm_id = "anyoneWithLink")
# gs_delete(foo)
# ## End(Not run)

Run the code above in your browser using DataLab