Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

curl
delete

How to send a DELETE request with Curl

Educative Answers Team

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.

RELATED TAGS

curl
delete
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring