Learn R Programming

boxr (version 0.3.3)

box_delete_file: Move files to and from the box.com trash folder

Description

  • box_delete_file moves a file to the trash folder.
  • box_delete_folder moves a whole folder (and all of it's contents) to the trash folder.
  • box_restore_file moves a file from the trash, to wherever it was before
  • box_delete_folder does the same thing for a folder.

Usage

box_delete_file(file_id)
box_delete_folder(dir_id)
box_restore_folder(dir_id)
box_restore_file(file_id)

Arguments

file_id
The box.com id for the file that you'd like delete/restore
dir_id
The box.com id for the folder that you'd like delete/restore

Value

An object of class boxr_file_reference.

Details

'Deleting' a file in this case means moving it to a special folder within your box.com account called the 'Trash'. At the time of writing, the files are stored for three months before being deleted, and the contents of the folder can be accessed from the top right hand menu of the web interface.

See Also

box_ul, for putting files there in the first place