Delete Agent
Permanently delete an agent and all associated data.
Endpoint
DELETE https://api.irisos.xyz/v1/agents/{agentId}Authentication
This endpoint requires an API key. Include it in the request headers:
Authorization: Bearer YOUR_API_KEYPath Parameters
agentId
string
Yes
The unique identifier of the agent to delete
⚠️ Warning
This action is irreversible. Deleting an agent will:
Permanently remove the agent configuration
Delete all conversation history
Remove all associated metrics and logs
Disconnect from all platform integrations
Consider using the Update Agent endpoint to set status to inactive instead if you want to preserve data.
Example Request
Response
Success Response (200 OK)
Error Response (404 Not Found)
Error Response (403 Forbidden)
Example Usage
JavaScript
Python
Safe Deletion Process
For production agents, follow this safe deletion process:
Backup configuration: Export agent configuration before deletion
Set to inactive: Update agent status to
inactivefirstMonitor for 24 hours: Ensure no critical dependencies
Export data: Download conversation logs and metrics
Delete: Execute the deletion
Example Backup Before Delete
Bulk Deletion
To delete multiple agents, make individual DELETE requests:
Related Endpoints
Last updated