How do I send a DELETE request using Curl? [JavaScript/AJAX Code]

To make a DELETE request using Curl, you need to use the -X DELETE command-line option followed by the target URL. To pass additional headers to the HTTP server, use the -H command-line option. The "Accept: application/json" header tells the server that the client expects JSON data in response. In this Curl DELETE example, we send a request to the ReqBin echo URL. Click Run to execute the Curl DELETE request online and see the results. The JavaScript/AJAX code was automatically generated for the Curl DELETE Request example.
Loading...