Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gs_delete

Delete a spreadsheet


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

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

## Not run: 
foo <- gs_new("new_sheet")
gs_delete(foo)

## End(Not run)

googlesheets

Manage Google Spreadsheets from R

v0.3.0
MIT + file LICENSE
Authors
Jennifer Bryan [aut, cre], Joanna Zhao [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.