Skip to content
Local APIBrowser profiles

Delete a browser profile (move to recycle bin) ​

Version overview
DELETE
/api/v1/browsers/{envId}

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
Fields
stringrequired
Unique browser profile ID
Example"env_01JABCDEF1234567890"
minLength: 1

Body parameters

application/jsonBrowserDeleteRequest
Fields
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.

{
  "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/jsonBrowserDeleteSuccessResponse
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": {
    "env_id": "env_01JABCDEF1234567890",
    "status": "recycled",
    "delete_cache": true
  }
}

View all business error codes and HTTP statuses

ZYBrowser Local API documentation