Skip to main content
This is a destructive operation that cannot be undone. Deleting an agent permanently removes all associated data including usage statistics, configuration, and history.

Overview

Permanently delete an agent and all its associated data. Kakiyo-managed agents must have status ended; externally provisioned profiles can be removed when their source lifecycle requires cleanup. The operation removes the agent, its campaigns, and its usage statistics from your account. Kakiyo-managed agents also have their provider resources cleaned up, while externally provisioned profiles keep their externally owned provider resources untouched.

Prerequisites

  • You must have access to the agent (same team)
  • Agent must exist in your account
  • Kakiyo-managed agents must have status ended
  • No campaign import can be active for the agent

Use Cases

  • Account Cleanup: Remove agents that are no longer needed
  • Data Management: Clean up ended agents to reduce clutter
  • Resource Management: Free up agent slots in your account
  • Compliance: Permanently remove agent data for privacy requirements

Path Parameters

string
required
The unique identifier of the agent to delete

Response Examples

Success Response

Error Responses

Testing Examples

Error Handling

Status Code Reference

Comprehensive Error Handling

Integration Examples

Safe Deletion Workflow

Bulk Agent Cleanup

Best Practices

  1. Status Verification: Ensure Kakiyo-managed agents are ended and campaign imports have completed before attempting deletion
  2. User Confirmation: Implement confirmation dialogs for destructive operations
  3. Error Handling: Handle all possible error scenarios gracefully
  4. Logging: Log deletion operations for audit trails
  5. Backup Consideration: Consider exporting important data before deletion
  6. Batch Operations: Use rate limiting when deleting multiple agents

Security Considerations

  • Authorization: Ensure proper API key permissions
  • Team Isolation: Agents can only be deleted by team members
  • Audit Logging: All deletion operations are logged
  • Data Cleanup: External resources are properly cleaned up

What Gets Deleted

When an agent is deleted, the following data is permanently removed:
  • Agent Configuration: All settings, credentials, and preferences
  • Usage Statistics: Historical usage data and metrics
  • External Resources: GoLogin profiles and proxy assignments
  • Task History: All completed and pending tasks
  • Alert History: All alerts and notifications
  • Integration Data: Any connected third-party service data
This operation cannot be undone. Make sure you have exported any important data before proceeding with deletion.
Last modified on July 23, 2026