

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: HTTP Methods - GET
incomplete
2: Why Use HTTP Methods?
incomplete
3: POST Requests
incomplete
4: Status Codes
incomplete
5: Status Code Property
incomplete
6: PUT
incomplete
7: PATCH vs. PUT
incomplete
8: Delete
incomplete
This lesson's interactive features are locked, please to keep using them
The DELETE method does exactly what you expect: it deletes a specified resource.
// This deletes the location with ID: 52fdfc07-2182-454f-963f-5f0f9a621d72
const url =
"https://api.boot.dev/v1/courses_rest_api/learn-http/locations/52fdfc07-2182-454f-963f-5f0f9a621d72";
await fetch(url, {
method: "DELETE",
mode: "cors",
});
Users need to be able to delete their player accounts! Complete the deleteUser function. It should send a DELETE request to the given fullURL. You'll need to set the method, mode and headers. Like before, set the X-API-Key header to equal the given apiKey.