How to send a DELETE request with Curl

Curl is a command-line utility that allows users to create network requests. Curl is accessible on Windows, Linux, and Mac, which makes it the go-to choice for developers across all platforms.

svg viewer

A DELETE request can be made as follows:

curl -X "DELETE" http://www.example.com/page

This would send a DELETE request to the specified URL and delete the page from the server.

The -X flag specifies a custom request method to use when communicating with the HTTP server. By default, the GET method is used unless some other method is specified.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved