Wrapper to make generic DELETE calls to SAS Viya

vDELETE(session, path, ..., verbose = FALSE)

Arguments

session

viya_connection object, obtained through session function

path

character, path to the GET api endpoint

...

additional parameters to be passed to httr::DELETE such as httr::add_headers

verbose

logical, return print API call information

Value

An httr::response() type object

See also

httr::GET(), httr::POST(), httr::PUT(), httr::DELETE()

Other core API requests: vGET(), vHEAD(), vPOST(), vPUT()

Examples


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)

} # }