LogoRecal

Delete User

Delete a user

DELETE
/v1/users/{userId}

Authorization

AuthorizationRequiredBearer <token>

The Recal API token

In: header

Path Parameters

userIdRequiredstring

Response Body

TypeScript Definitions

Use the response body type in TypeScript.

idRequiredstring
createdAtRequiredDate | string | number

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredstring
Value in: "User not found"
curl -X DELETE "https://api.recal.dev/v1/users/string" \
  -H "Authorization: Bearer <token>"
fetch("https://api.recal.dev/v1/users/string", {
  headers: {
    "Authorization": "Bearer <token>"
  }
})
package main

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

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

  req, _ := http.NewRequest("DELETE", url, nil)
  req.Header.Add("Authorization", "Bearer <token>")
  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://api.recal.dev/v1/users/string"

response = requests.request("DELETE", url, headers = {
  "Authorization": "Bearer <token>"
})

print(response.text)
{
  "id": "user_1234567890",
  "createdAt": "2025-05-03T13:50:25.000Z"
}
"User not found"