Skip to content
Local APIBrowser profiles

Delete browser profiles in a batch (move to recycle bin) ​

Version overview
DELETE
/api/v1/browsers

Move browser profiles to the recycle bin in a batch. Duplicate IDs are removed automatically; maximum: 100. The backend is called only after all IDs pass validation and none of the profiles are running. delete_cache defaults to false.

Request parameters

Authorization Bearer Token

Include your API Key as a Bearer token in the Authorization request header.

Authorization: Bearer <api-key>

Body parameters

requiredapplication/jsonBrowserBatchDeleteRequest
Fields
string[]required
Profile IDs to move to the recycle bin. Duplicate values are removed automatically. Maximum: 100.
minItems: 1maxItems: 100
boolean
Whether to also delete the local profile cache; defaults to false, matching the disabled-by-default deletion toggle in the client
Defaultfalse
Example

Generated from the schema; not a live response.

{
  "env_ids": [
    "env_01JABCDEF1234567890"
  ]
}

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 '{
  "env_ids": [
    "env_01JABCDEF1234567890"
  ]
}' 'http://local.zhongyibrowser.com:39025/api/v1/browsers'

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/jsonBrowserBatchDeleteSuccessResponse
Fields
numberrequired
Business status code; always 0 on success
Enum
stringrequired
Business status message; always success on success
Enum
objectrequired
Endpoint business data

Additional fields are not allowed.

Example

Generated from the schema; not a live response.

{
  "code": 0,
  "message": "success",
  "data": {
    "status": "recycled",
    "env_ids": [
      "env_01JABCDEF1234567890"
    ],
    "count": 0,
    "delete_cache": true
  }
}

View all business error codes and HTTP statuses

ZYBrowser Local API documentation