gs_delete: Delete a spreadsheet

Description Usage Arguments Value See Also Examples

Description

Move a spreadsheet to trash on Google Drive. You must own a sheet in order to move it to the trash. If you try to delete a sheet you do not own, a 403 Forbidden HTTP status code will be returned; third party spreadsheets can only be moved to the trash manually in the web browser (which only removes them from your Google Sheets home screen, in any case). If you trash a spreadsheet that is shared with others, it will no longer appear in any of their Google Drives. If you delete something by mistake, remain calm, and visit the trash in Google Drive, find the sheet, and restore it.

Usage

1
gs_delete(ss, verbose = TRUE)

Arguments

ss

a registered Google spreadsheet, i.e. a googlesheet object

verbose

logical; do you want informative messages?

Value

logical indicating if the deletion was successful

See Also

gs_grepdel and gs_vecdel for handy wrappers that help you delete sheets by title, with the ability to delete multiple sheets at once

Other sheet deletion functions: gs_grepdel

Examples

1
2
3
4
5
## Not run: 
foo <- gs_new("new_sheet")
gs_delete(foo)

## End(Not run)

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