The request's DELETE parameters
DELETE
/deleteResponses
JSON
{
"method": "string",
"uri": "string",
"headers": {
},
"origin": "string",
"query": {
},
"body_string": "string",
"json": null
}
DELETE
/deleteSamples
cURL
curl -X DELETE https://httpbin.rs/delete
JavaScript
fetch("https://httpbin.rs/delete", { method: "DELETE" })
.then(response => response.json())
.then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://httpbin.rs/delete");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.delete("https://httpbin.rs/delete")
print(response.json())