Clients
Delete client
Soft-delete by default (sets status to false). Pass ?hard=true to permanently remove the client from the database and KV store. Hard delete is irreversible.
curl -X DELETE "https://api.mythic-analytics.com/api/v1/clients/example_string?hard=true" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
import requests
import json
url = "https://api.mythic-analytics.com/api/v1/clients/example_string?hard=true"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
response = requests.delete(url, headers=headers)
print(response.json())
const response = await fetch("https://api.mythic-analytics.com/api/v1/clients/example_string?hard=true", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
)
func main() {
req, err := http.NewRequest("DELETE", "https://api.mythic-analytics.com/api/v1/clients/example_string?hard=true", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.mythic-analytics.com/api/v1/clients/example_string?hard=true')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
response = http.request(request)
puts response.body
{
"success": true,
"deleted": true,
"hard": false
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Not Found",
"message": "The requested resource was not found",
"code": 404
}
DELETE
/clients/{id}DELETE
Security Scheme
Bearer Tokenstring
RequiredAdmin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
Admin API key as bearer token. Format:
Bearer YOUR_ADMIN_KEYpath
idstring
RequiredClient identifier. Must match ^[a-zA-Z0-9_-]{1,255}$.
Pattern: ^[a-zA-Z0-9_-]{1,255}$
query
hardstring
Set to true for permanent deletion. Default is soft delete.
Options: true, false
Request Preview
Response
Response will appear here after sending the request
Authentication
header
Authorizationstring
RequiredBearer token. Admin API key as bearer token. Format: Bearer YOUR_ADMIN_KEY
Path Parameters
idstring
RequiredClient identifier. Must match ^[a-zA-Z0-9_-]\{1,255\}$.
Query Parameters
Responses
successboolean
deletedboolean
hardboolean
true if permanently deleted, false for soft delete.
Was this page helpful?
Built with Documentation.AI
Last updated today