Skip to contents

Deletes a file or directory from the remote SAS server. Is analogous to file.remove(), but for the remote SAS server.

Usage

sas_file_remove(path)

Arguments

path

string; Path of file on remote SAS server to be deleted.

Value

logical; value indicating if the operation succeeded.

See also

Examples

if (FALSE) { # interactive()
# connect to SAS
sas_connect()

# create a file and upload it to SAS
tempfile_path <- tempfile(fileext = ".sas")
tempfile_basename <- basename(tempfile_path)
cat("PROC MEANS DATA = sashelp.cars;RUN;", file = tempfile_path)
sas_file_upload(local_path = tempfile_path, sas_path = paste0("~/", tempfile_basename))

# remove file from SAS
sas_file_remove(paste0("~/", tempfile_basename))
}