Skip to content
Local APIBrowser profiles

Permanently delete a browser profile ​

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

Permanently delete the specified browser profile and clear its local cache. If the profile is still in the profile list, it is first moved to the recycle bin and then permanently deleted. If it is already in the recycle bin, it is permanently deleted directly. Running profiles return 40920.

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

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>' 'http://local.zhongyibrowser.com:39025/api/v1/browsers/env_01JABCDEF1234567890/permanent'

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 permanently deleted

Body

application/jsonBrowserPermanentDeleteSuccessResponse
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": "deleted"
  }
}

View all business error codes and HTTP statuses

ZYBrowser Local API documentation