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.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved