How do I send a DELETE request using Curl?

To make a DELETE request using Curl, run the curl command with the -X DELETE command line parameter followed by the target URL. Use the -H command-line option to pass additional HTTP headers to the server. In this Curl DELETE example, we send a request to the ReqBin echo URL and pass an Accept: application/json header to the server. Click Run to execute the Curl DELETE request online and view the results.
Loading...