Skip to main content

Delete an AI Agent

Used to permanently delete an existing AI agent by its unique identifier. This action is irreversible and will remove all associated data.

API Endpoint

PropertyValue
Request MethodDELETE
Request URLhttps://api.seliseblocks.com/agents/delete/{agent_id}

Request

Request Example

curl -X DELETE 'https://api.seliseblocks.com/agents/delete/a1b2c3d4-e5f6-7890-abcd-ef1234567890?project_key=YOUR_PROJECT_KEY' \
-H 'accept: application/json'

Request Headers

FieldTypeRequiredDescription
acceptstringYesAccepted response format. Use application/json

Path Parameters

FieldTypeRequiredDescription
agent_idstringYesUUID of the AI Agent to be deleted.

Query Parameters

FieldTypeRequiredDescription
project_keystringNoProject key used to change context.
warning

This action is irreversible. Once an agent is deleted, all associated configurations, data, and history will be permanently removed and cannot be recovered.

Response

Success Response (200 OK)

Returns an object containing the deletion status.

{
"is_success": true,
"item_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"detail": "Agent deleted successfully",
"error": {}
}

Response Fields

FieldTypeDescription
is_successbooleanIndicates whether the deletion was successful.
item_idstringUnique identifier of the deleted agent.
detailstringSuccess or failure message with additional context.
errorobjectError details if the operation failed (empty if successful).

Error Response (422 Unprocessable Entity)

Returns validation error details when the request parameters are invalid.

{
"detail": [
{
"loc": [
"path",
"agent_id"
],
"msg": "invalid UUID format",
"type": "type_error.uuid"
}
]
}

Error Response Fields

FieldTypeDescription
detailarrayArray of validation error objects.
locarrayLocation of the error in the request (e.g., path, query).
msgstringHuman-readable error message.
typestringError type identifier.

Error Codes

Status CodeDescriptionResponse Type
200Successful ResponseSuccess
422Validation Error - Invalid request parametersUnprocessable Entity