How to Send a Delete Request in Insomnia?

This article has introduced the steps for sending DELETE requests using Insomnia: downloading and installing Insomnia, creating request collections, entering the target URL and selecting the DELETE method, adding request headers and bodies (optional), sending requests.

Home > Blog > How to Send a Delete Request in Insomnia?

In development, interfaces need to communicate with servers, among which, sending DELETE requests is used to delete resources from the server. This article will introduce how to use Insomnia to send DELETE requests.

1.Preparation

First, make sure you have downloaded and installed Insomnia. If not, you can download it from the official website. If you don't have an account yet, consider registering one.

2.Create a Delete Request

After opening Insomnia, create a new collection on the page, then enter the collection. You will see an "HTTP Request" button, click it to create a new request.

Send a Delete Request in Insomnia

3.Enter Request URL

Now, enter the target URL for the DELETE request into the URL address bar of the request. This could be your API endpoint or the address of other network resources. Then, select the HTTP method as DELETE.

Send a Delete Request in Insomnia

4.Add Request Headers (Optional)

If you need to include specific header information in the request, such as Content-Type or Authorization, you can add them at this step.

Send a Delete Request in Insomnia

5.Add Request Body (Optional)

Sometimes, DELETE requests may need to include a request body, such as information about the resource to be deleted. If necessary, click the request body tab and enter the corresponding content.

Send a Delete Request in Insomnia

6.Send Request and View Response

Now, everything is ready. Click the send button to let Insomnia send your DELETE request. Wait for a moment, and you will see the server's response in the response panel. Here, you can see information such as status codes, response headers, and response bodies to confirm whether the request was successful.

Send a Delete Request in Insomnia

Summary

This article has introduced the steps for sending DELETE requests using Insomnia: downloading and installing Insomnia, creating request collections, entering the target URL and selecting the DELETE method, adding request headers and bodies (optional), sending requests, and viewing responses.

How to Send a Delete Request in Insomnia?
This article has introduced the steps for sending DELETE requests using Insomnia: downloading and installing Insomnia, creating request collections, entering the target URL and selecting the DELETE method, adding request headers and bodies (optional), sending requests.

Learn more: