Skip to content

DELETE

The DELETE method deletes the specified resource.

DELETE is idempotent. Calling it multiple times on the same resource will leave the server in the same final state (the resource is gone), though responses might differ (200 OK or 204 No Content for the first, 404 Not Found for subsequent ones).

const response = await fetch('https://api.example.com/data/123', {
method: 'DELETE'
});