httpDelete
Makes a DELETE
request to the passed URL.
- Use the
XMLHttpRequest
web API to make aDELETE
request to the givenurl
. - Handle the
onload
event, by running the providedcallback
function. - Handle the
onerror
event, by running the providederr
function. - Omit the third argument,
err
to log the request to the console's error stream by default.