Learn R Programming

opalr (version 3.3.1)

opal.file_rm: Remove a file

Description

Remove a file or a folder from the Opal file system.

Usage

opal.file_rm(opal, path)

Arguments

opal

Opal object.

path

Path to the file in the Opal file system.

See Also

Other file functions: opal.file_cp(), opal.file_download(), opal.file_ls(), opal.file_mkdir_tmp(), opal.file_mkdir(), opal.file_mv(), opal.file_read(), opal.file_unzip(), opal.file_upload(), opal.file_write(), opal.file()

Examples

Run this code
if (FALSE) {
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
# remove a file
opal.file_rm(o, '/home/administrator/export/some-data.csv')
# remove recursively a folder
opal.file_rm(o, '/home/administrator/export')
opal.logout(o)
}

Run the code above in your browser using DataLab