My App
Api/Users/Id

Delete a user

Delete a user

DELETE
/api/users/{id}

Path Parameters

idstring
Length3 <= length

Response Body

curl -X DELETE "https://demo.nextshell.dev/api/users/string"
fetch("https://demo.nextshell.dev/api/users/string")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://demo.nextshell.dev/api/users/string"

  req, _ := http.NewRequest("DELETE", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://demo.nextshell.dev/api/users/string"

response = requests.request("DELETE", url)

print(response.text)
{
  "id": "123",
  "name": "John Doe",
  "age": 42
}