Overview
Permanently delete an agent and all its associated data. This endpoint can only be used when the agent status isended. The operation removes the agent from your account, cleans up external resources (GoLogin profiles), and deletes all usage statistics.
Prerequisites
- Agent must have status
ended - You must have access to the agent (same team)
- Agent must exist in your account
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
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: Always verify agent status is ‘ended’ 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

