Overview
Permanently delete an agent and all its associated data. Kakiyo-managed agents must have statusended; 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
- Status Verification: Ensure Kakiyo-managed agents are ended and campaign imports have completed before attempting deletion
- User Confirmation: Implement confirmation dialogs for destructive operations
- Error Handling: Handle all possible error scenarios gracefully
- Logging: Log deletion operations for audit trails
- Backup Consideration: Consider exporting important data before deletion
- 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

