lookup> DELETE

DELETE

Removes the association between the target resource and its current functionality. Idempotent.

unsafeidempotentnot cacheableRFC7231#4.3.5
PropertyValue
Safe (does not modify state)No
Idempotent (repeatable)Yes
CacheableNo

Removes the association between the target resource and its current functionality. Idempotent.

curl -X DELETE https://api.example.com/users/1
DELETE /api/users/1 HTTP/1.1
Host: example.com
DELETEPOST
Remove a resourceCreate or process
IdempotentNot idempotent

Is the DELETE method safe?

DELETE is not a safe method — calling it can change resource state.

What happens if I send DELETE repeatedly?

DELETE is idempotent — repeated requests have the same effect as a single request.

All HTTP methods

Related status codes

Related headers