Learn R Programming

googlesheets (version 0.3.0)

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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab