Delete a user
curl --request DELETE \
--url https://api.clix.so/api/v1/users/{project_user_id} \
--header 'X-Clix-API-Key: <api-key>' \
--header 'X-Clix-Project-ID: <api-key>'import requests
url = "https://api.clix.so/api/v1/users/{project_user_id}"
headers = {
"X-Clix-Project-ID": "<api-key>",
"X-Clix-API-Key": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'X-Clix-Project-ID': '<api-key>', 'X-Clix-API-Key': '<api-key>'}
};
fetch('https://api.clix.so/api/v1/users/{project_user_id}', 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.clix.so/api/v1/users/{project_user_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-Clix-API-Key: <api-key>",
"X-Clix-Project-ID: <api-key>"
],
]);
$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.clix.so/api/v1/users/{project_user_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Clix-Project-ID", "<api-key>")
req.Header.Add("X-Clix-API-Key", "<api-key>")
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.clix.so/api/v1/users/{project_user_id}")
.header("X-Clix-Project-ID", "<api-key>")
.header("X-Clix-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clix.so/api/v1/users/{project_user_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Clix-Project-ID"] = '<api-key>'
request["X-Clix-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{}"Project User Id must be provided"Users
Delete User
Permanently deletes a user and all associated data
DELETE
/
api
/
v1
/
users
/
{project_user_id}
Delete a user
curl --request DELETE \
--url https://api.clix.so/api/v1/users/{project_user_id} \
--header 'X-Clix-API-Key: <api-key>' \
--header 'X-Clix-Project-ID: <api-key>'import requests
url = "https://api.clix.so/api/v1/users/{project_user_id}"
headers = {
"X-Clix-Project-ID": "<api-key>",
"X-Clix-API-Key": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'X-Clix-Project-ID': '<api-key>', 'X-Clix-API-Key': '<api-key>'}
};
fetch('https://api.clix.so/api/v1/users/{project_user_id}', 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.clix.so/api/v1/users/{project_user_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-Clix-API-Key: <api-key>",
"X-Clix-Project-ID: <api-key>"
],
]);
$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.clix.so/api/v1/users/{project_user_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Clix-Project-ID", "<api-key>")
req.Header.Add("X-Clix-API-Key", "<api-key>")
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.clix.so/api/v1/users/{project_user_id}")
.header("X-Clix-Project-ID", "<api-key>")
.header("X-Clix-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clix.so/api/v1/users/{project_user_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Clix-Project-ID"] = '<api-key>'
request["X-Clix-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{}"Project User Id must be provided"Overview
Permanently deletes a user identified by theirproject_user_id. This action is irreversible and will remove the user and all associated data from your project.
Authentication
This endpoint requires authentication via the following HTTP headers:X-Clix-Project-ID: Your project IDX-Clix-API-Key: Your Clix Secret API Key
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_user_id | string | Yes | The unique identifier of the user to delete |
Example Request
DELETE /api/v1/users/clix_user
Response
Success Response (200 OK)
Returns an empty response indicating successful deletion:{}
Error Responses
400 Bad Request
Returned when:project_user_idis missing or invalid
Project User Id must be provided
401 Unauthorized
Authentication failed or invalid API key.Notes
- This operation is irreversible - deleted users cannot be recovered
- All user data including properties, devices, and event history will be permanently removed
- If you need to temporarily disable a user, consider updating their properties instead of deleting
- After deletion, the same
project_user_idcan be reused to create a new user - Associated devices will also be removed when the user is deleted
- The endpoint does not return a 404 error - it returns 200 OK even if the user doesn’t exist
Was this page helpful?