Skip to contents

The DELETE method deletes the specified resource.

The DELETE method

The DELETE method requests that the origin server remove the association between the target resource and its current functionality. In effect, this method is similar to the rm command in UNIX: it expresses a deletion operation on the URI mapping of the origin server rather than an expectation that the previously associated information be deleted.


if (FALSE) {
x <- HttpClient$new(url = "")
x$delete(path = 'delete')

## a list
(res1 <- x$delete('delete', body = list(hello = "world"), verbose = TRUE))

## a string
(res2 <- x$delete('delete', body = "hello world", verbose = TRUE))

## empty body request
x$delete('delete', verbose = TRUE)