googlesheets (version 0.3.0)

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

Run this code
# NOT RUN {
foo <- gs_new("new_sheet")
gs_delete(foo)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace