trash_file: move a file to the trash

Description Usage Arguments Value

View source: R/files.R

Description

moves a file to Google Drive's "trash" folder, which is automatically emptied after a set number of days.

Usage

1
trash_file(file_id, ...)

Arguments

file_id

the ID of the file; see file_metadata for further commentary.

...

further arguments to pass to httr's POST.

Value

TRUE if the file was successfully trashed, an error otherwise.


noamross/driver documentation built on May 23, 2019, 9:30 p.m.