vDELETE.Rd
Wrapper to make generic DELETE calls to SAS Viya
vDELETE(session, path, ..., verbose = FALSE)
viya_connection object, obtained through session
function
character, path to the GET api endpoint
additional parameters to be passed to httr::DELETE
such as httr::add_headers
logical, return print API call information
An httr::response()
type object
if (FALSE) { # \dontrun{
folders <- vGET(session,
path = "folders/folders/")
newFolder <- vPOST(session,
path = paste0("folders/folders/"),
query = list(parentFolderUri = folders$items$parentFolderUri[1]),
payload = list(name = "newFolder"))
deletedFolder <- vDELETE(session,
path = "folders/folders/",
resourceID = newFolder$id)
} # }