R/synapseDelete.R

## Send a Delete request to the Repository Services
## 
## Author: Matthew D. Furia <matt.furia@sagebase.org>
###############################################################################

synapseDelete <- 
  function(
    uri, 
    endpoint=synapseServiceEndpoint("REPO"), 
    curlHandle=getCurlHandle(), 
    anonymous=FALSE, 
    opts = .getCache("curlOpts"),
    checkHttpStatus=TRUE,
	logErrorsToSynapse=TRUE
)
{
  ## constants
  kMethod <- "DELETE"
  ## end constants

  .synapseGetDelete(uri = uri, 
      requestMethod = kMethod,
      endpoint = endpoint,
      curlHandle = curlHandle, 
      anonymous = anonymous, 
      opts = opts,
      checkHttpStatus=checkHttpStatus,
	  logErrorsToSynapse=logErrorsToSynapse
    )

}
Sage-Bionetworks/rSynapseClient documentation built on May 9, 2019, 7:04 p.m.