delete_sb_file: Delete a single file from a ScienceBase item

Description Usage Arguments Examples

View source: R/delete_sb_file.R

Description

Light wrapper for item_rm_files: loops over multiple sb_id,file pairs if given. For timeseries files, sb_id and file can be determined using summarize_ts_files(). See examples

Usage

1
delete_sb_file(sb_id, files, verbose = TRUE)

Arguments

sb_id

character sciencebase id

files

character filename[s] to delete

verbose

logical. Should status messages be given?

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
oops <- summarize_ts_files('dosat_calcGGbts') %>% 
  filter(upload_date > as.POSIXct('2016-02-18'), 
    upload_date < as.POSIXct('2016-02-20'), 
    version=='rds') %>%
  select(sb_id=ts_item, files=file_name)
mda.streams:::delete_sb_file(oops$sb_id, oops$files)

## End(Not run)

USGS-R/mda.streams documentation built on Dec. 19, 2017, 10:25 p.m.