http delete
for network
Delete the specified resource.
Signature
> http delete (URL) --user --password --data --content-type --max-time --headers --raw --insecure --full --allow-errors
Parameters
URL
: the URL to fetch the contents from--user {any}
: the username when authenticating--password {any}
: the password when authenticating--data {any}
: the content to post--content-type {any}
: the MIME type of content to post--max-time {int}
: timeout period in seconds--headers {any}
: custom headers you want to add--raw
(-r)
: fetch contents as text rather than a table--insecure
(-k)
: allow insecure server connections when using SSL--full
(-f)
: returns the full response instead of only the body--allow-errors
(-e)
: do not fail if the server returns an error code
Notes
Performs HTTP DELETE operation.
Examples
http delete from example.com
> http delete https://www.example.com
http delete from example.com, with username and password
> http delete -u myuser -p mypass https://www.example.com
http delete from example.com, with custom header
> http delete -H [my-header-key my-header-value] https://www.example.com
http delete from example.com, with body
> http delete -d 'body' https://www.example.com
http delete from example.com, with JSON body
> http delete -t application/json -d { field: value } https://www.example.com