Delete User
curl --request DELETE \
--url https://api.sublay.io/api/v6/:projectId/api/v7/users/:userIdimport requests
url = "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyUser Endpoints
Delete User
Permanently delete a user and cascade cleanup across all of their related data
DELETE
/
:projectId
/
api
/
v7
/
users
/
:userId
Delete User
curl --request DELETE \
--url https://api.sublay.io/api/v6/:projectId/api/v7/users/:userIdimport requests
url = "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sublay.io/api/v6/:projectId/api/v7/users/:userId")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_bodyPermanently deletes the specified user and cascades cleanup across all of their related records. Reactions, files, follows, connections, notifications, collections, reports, and mentions are removed, and the user’s entities and comments are stripped of their authored content. This is the same full-cascade delete performed from the dashboard.
This is a hard, irreversible delete. It cannot be undone.
Authentication
Requires a service or master key. User auth tokens are rejected with a403.
Path Parameters
string
required
The Sublay user ID (UUID) to delete.
Response
On success, returns HTTP204 No Content with an empty body.
Error Responses
Elevated Auth Required — 403
Elevated Auth Required — 403
{
"error": "Service or master key required.",
"code": "auth/elevated-auth-required"
}
User Not Found — 404
User Not Found — 404
{
"error": "User not found.",
"code": "user/not-found"
}
Invalid Params — 400
Invalid Params — 400
{
"error": "...",
"code": "user/invalid-params"
}
Server Error — 500
Server Error — 500
{
"error": "Failed to delete the user.",
"code": "user/server-error"
}

