Delete a browser profile (move to recycle bin)
Move the specified browser profile for the current user and team to the recycle bin. Running profiles return 40920. The request body is optional. delete_cache defaults to false; if true, the local profile cache is deleted before moving the profile to the recycle bin. To restore or permanently delete it, use the profile recycle bin endpoints or call /browsers/{envId}/permanent.
Request parameters
Authorization Bearer Token
Include your API Key as a Bearer token in the Authorization request header.
Authorization: Bearer <api-key>Path parameters
1"env_01JABCDEF1234567890"minLength: 1Body parameters
application/jsonBrowserDeleteRequestfalseGenerated from the schema; not a live response.
{
"delete_cache": false
}Request code examples
JavaScript / TypeScript: Node.js 18+ with fetch; PHP: cURL extension; Go: 1.16+; Java: JDK 11+. Replace the token and example parameter values before running.
curl -X DELETE -H 'Authorization: Bearer <TOKEN>' -H 'Content-Type: application/json' -d '{
"delete_cache": false
}' 'http://local.zhongyibrowser.com:39025/api/v1/browsers/env_01JABCDEF1234567890'Responses
Success: code = 0. Failure: code > 0. Select a status to view its fields and example. Expand objects to inspect nested fields. Optional fields may be omitted.
The browser profile has been moved to the recycle bin
Body
application/jsonBrowserDeleteSuccessResponseobjectrequiredEndpoint business dataAdditional fields are not allowed.
Additional fields are not allowed.
Generated from the schema; not a live response.
{
"code": 0,
"message": "success",
"data": {
"env_id": "env_01JABCDEF1234567890",
"status": "recycled",
"delete_cache": true
}
}