gs_perm_delete: Delete a permission from a spreadsheet

Description Usage Arguments Examples

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

googlesheets documentation built on May 2, 2019, 1:57 p.m.