Logo
Search
Docs

Delete agent

DELETE https://app.sulus.ai/api/v1/agents/{agent_id}

Delete an agent and everything in it

Authentication

Send a bearer token created on your dashboard's Developer page:

Authorization: Bearer <YOUR_API_KEY>

Path parameters

agent_id string Required

The agent id (UUID).

Validation: uuid (route-constrained)
Stored in ai_projects.uid

Errors

StatusMeaningBody
404 Agent not found, or you are not its owner (delete requires ownership, not just write access)
401 Missing or invalid bearer token
403 Feature ai_chat not enabled for the account
curl --request DELETE \
  --url https://app.sulus.ai/api/v1/agents/{agent_id} \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
import requests

url = "https://app.sulus.ai/api/v1/agents/{agent_id}"
headers = {"Authorization": "Bearer <YOUR_API_KEY>"}

response = requests.delete(url, headers=headers)
print(response.json())
package main

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

func main() {
	url := "https://app.sulus.ai/api/v1/agents/{agent_id}"
	req, _ := http.NewRequest("DELETE", url, nil)
	req.Header.Add("Authorization", "Bearer <YOUR_API_KEY>")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
Response 200
{
    "object": "agent.deleted",
    "id": "a1b2c3d4-0000-4000-8000-000000000001",
    "deleted": true
}