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_KEY

Path Parameters

Parameter
Type
Required
Description

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:

  1. Backup configuration: Export agent configuration before deletion

  2. Set to inactive: Update agent status to inactive first

  3. Monitor for 24 hours: Ensure no critical dependencies

  4. Export data: Download conversation logs and metrics

  5. Delete: Execute the deletion

Example Backup Before Delete

Bulk Deletion

To delete multiple agents, make individual DELETE requests:

Last updated