# Postman DELETE requests behaving like GET requests

**URL:** <https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974>\
**Category:** Help Hub\
**Tags:** request\
**Created:** [April 12, 2019, 8:17am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974 "2019-04-12T08:17:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![IOT\_Valley](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@IOT\_Valley](https://community.postman.com/u/IOT_Valley)\
**Post date:** [April 12, 2019, 8:17am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/1 "2019-04-12T08:17:16Z")

</div>

## App Details:

```auto
Postman for Linux
Version 7.0.7
linux 4.9.0-8-amd64 / x64

```

## Issue Report:

1. Did you encounter this recently, or has this bug always been there:  
I believe this bug has always been there, certainly on my current version
2. Expected behaviour:  
When sending a `DELETE` request to my site, Postman behaves as if it was a `GET` request, and does not delete the item
3. Console logs:

```auto
DELETE
http://127.0.0.1:6942/devices/787022c7-cff7-4c5e-9206-b71283002f2f
11:32:45.450

Request Headers:
cache-control:"no-cache"
Postman-Token:"533df8e4-66b3-488c-a90a-683fa74b9620"
User-Agent:"PostmanRuntime/7.6.1"
Accept:"*/*"
accept-encoding:"gzip, deflate"
referer:"http://127.0.0.1:6942/devices/787022c7-cff7-4c5e-9206-b71283002f2f"
Response Headers:
Server:"gunicorn/19.9.0"
Date:"Tue, 09 Apr 2019 09:32:45 GMT"
Connection:"close"
Content-Type:"application/json"
Vary:"Accept, Cookie"
Allow:"GET, PUT, PATCH, DELETE, HEAD, OPTIONS"
Content-Length:"345"
X-Frame-Options:"SAMEORIGIN"
Response Body:
id:"787022c7-cff7-4c5e-9206-b71283002f2f"
number:2
name:"Device 2"
last_received_battery_percentage:42
last_received_position_latitude:-33
last_received_position_longitude:151
last_received_position_radius:1000
last_received_position_is_from_atlas:true
last_received_city_name:"Whittingham"
last_received_temperature:21

```

Also note my test failure:  
`Status code is 204 | AssertionError: expected response to have status code 204 but got 200`

To reproduce the problem simply call a `DELETE` request and verify whether the item has been deleted.  
The bug does not come from my API as it behaves as expected when sending requests via curl.  
I tried turning off the redirect, the only difference was that the device was not listed on the `DELETE` request, but was still not actually deleted.

When I make a DELETE call from your postman app to [https://postman-echo.com/delete](https://postman-echo.com/delete) I get:

```auto
{
    "args": {},
    "data": {},
    "files": {},
    "form": {},
    "headers": {
        "x-forwarded-proto": "https",
        "host": "postman-echo.com",
        "accept": "*/*",
        "accept-encoding": "gzip, deflate",
        "cache-control": "no-cache",
        "cookie": "sails.sid=s%3A8YPbr28_BB1JtlaYJrsay4U_GOVflxtj.pPVnIHt8zkSEMw8XtT3utxXo92Csq4QASpgb8ve0QOI",
        "postman-token": "9cb31b3e-2ed9-437c-b994-f638a379564b",
        "user-agent": "PostmanRuntime/7.6.1",
        "x-forwarded-port": "443"
    },
    "json": null,
    "url": "https://postman-echo.com/delete"
}

```

and in the console I have:

```auto
DELETE
https://postman-echo.com/delete
13:44:35.796

Request Headers:
cache-control:"no-cache"
Postman-Token:"9cb31b3e-2ed9-437c-b994-f638a379564b"
User-Agent:"PostmanRuntime/7.6.1"
Accept:"*/*"
Host:"postman-echo.com"
cookie:"sails.sid=s%3A8YPbr28_BB1JtlaYJrsay4U_GOVflxtj.pPVnIHt8zkSEMw8XtT3utxXo92Csq4QASpgb8ve0QOI"
accept-encoding:"gzip, deflate"
content-length:""
Response Headers:
Content-Encoding:"gzip"
Content-Type:"application/json; charset=utf-8"
Date:"Thu, 11 Apr 2019 11:44:35 GMT"
ETag:"W/"1c6-26IRTbXUcjpABswIJyHqMiM9rA0""
Server:"nginx"
set-cookie:"sails.sid=s%3ACqqY9kvbmOk426328nqcVx2bEahPSldF.vu9NY81Jr%2FD2Z8Ny7rJiDacOqAFRAYgUUVM%2FyWtKYRs; Path=/; HttpOnly"
Vary:"Accept-Encoding"
Content-Length:"339"
Connection:"keep-alive"
Response Body:
args:
data:
files:
form:
headers:
json:null
url:"https://postman-echo.com/delete"

```

Has anyone else had this issue?

---

<div class="post-metadata">

**Author:** ![payload-cosmologist3](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@payload-cosmologist3](https://community.postman.com/u/payload-cosmologist3)\
**Post date:** [April 8, 2021, 5:28am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/2 "2021-04-08T05:28:44Z")

</div>

I m facing the same issue

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 8, 2021, 6:51am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/3 "2021-04-08T06:51:28Z")

</div>

Hey @payload-cosmologist3

As it’s 2 years later and a lot of things have happened to the platform in that time - it’s probably best to explain your specific problem, happening in your context.

Please provide as much detail as possible. 🏆

---

<div class="post-metadata">

**Author:** ![payload-cosmologist3](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@payload-cosmologist3](https://community.postman.com/u/payload-cosmologist3)\
**Post date:** [April 8, 2021, 8:09am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/4 "2021-04-08T08:09:00Z")

</div>

I tried to request a delete method but returns get method

 ![Screenshot (38)](https://us1.discourse-cdn.com/getpostman/original/2X/0/04f67e0bedacec3489bda97828f7700e686e8d0d.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 8, 2021, 8:16am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/5 "2021-04-08T08:16:55Z")

</div>

I’m not actually sure what you’re trying to show there 🤔

Can you explaining step by step what you’re doing and what you’re seeing, please? Without more context and detail, I don’t believe anyone is going to be able to help you here.

More information about the type of details you should be providing can be found here:

> [@How to Best Ask Questions on Community to Get the Answers You Need](https://community.postman.com/t/how-to-best-ask-questions-on-community-to-get-the-answers-you-need/16912):
>
> Hello! Welcome to the Postman Community forum. We want you to get the most out of the forum as possible; your questions help others learn too. Here are best practices and forum etiquette to assist getting the answers you need. rocket Update: Using public workspaces to share your problem makes getting support even more easily. [Here’s how](https://community.postman.com/t/using-public-workspaces-to-get-help-with-postman/22418/). Search First: Thanks to the great Postman community, there are many answers for common questions already accessible. Try searching for keywords related to …

---

<div class="post-metadata">

**Author:** ![payload-cosmologist3](https://avatars.discourse-cdn.com/v4/letter/p/c0e974/32.png) [@payload-cosmologist3](https://community.postman.com/u/payload-cosmologist3)\
**Post date:** [April 8, 2021, 10:16am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/6 "2021-04-08T10:16:46Z")

</div>

when i run  
[Delete]:qm.docca.in/api/resource/Lead/victory Hospital  
It gives me a response of 200 but wont get deleted, it outputs the GET method instead

 ![Screenshot (39)](https://us1.discourse-cdn.com/getpostman/original/2X/7/7bc55efac7f0c012a1eb868327f2431e3a2b7dca.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 8, 2021, 11:33am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/7 "2021-04-08T11:33:32Z")

</div>

- Is that a duplicate of the `brand` request, which is a GET?
- What happens when you save that request, does it change the method and name in the sidebar?
- Have you tried opening a new tab and recreating DELETE request there?

Context wise, I have absolutely no idea what that request should be doing or returning.

---

<div class="post-metadata">

**Author:** ![docking-module-arch4](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/docking-module-arch4/32/9418_2.png) [@docking-module-arch4](https://community.postman.com/u/docking-module-arch4)\
**Post date:** [August 12, 2021, 10:52pm UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/8 "2021-08-12T22:52:39Z")

</div>

Put a “/” at the end of the path. Be careful to enter an exact path match for the post, including end bars.

---

<div class="post-metadata">

**Author:** ![ponceletsebastien](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@ponceletsebastien](https://community.postman.com/u/ponceletsebastien)\
**Post date:** [October 4, 2021, 7:41am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/9 "2021-10-04T07:41:41Z")

</div>

@docking-module-arch4 , adding the “/” at the end of the path in postman (haven’t modified anything inmy code concerning the urls) actually solved the issue in my case. Without it, my DELETE request was actually considered and treated like a GET request.

---

<div class="post-metadata">

**Author:** ![aerospace-cosmonaut4](https://avatars.discourse-cdn.com/v4/letter/a/ad7895/32.png) [@aerospace-cosmonaut4](https://community.postman.com/u/aerospace-cosmonaut4)\
**Post date:** [September 15, 2022, 1:15am UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/10 "2022-09-15T01:15:13Z")

</div>

I also had this problem. For me it seemed to be related to a caching issue with the environment config.

When I updated & reset my environment config (the hostname was stored there), it then sent a DELETE request instead of GET.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [August 24, 2023, 3:18pm UTC](https://community.postman.com/t/postman-delete-requests-behaving-like-get-requests/4974/11 "2023-08-24T15:18:47Z")

</div>


