Skip to main content
Version: v1

/kill API

The kill API allows you to kill a specific session or all the open sessions and is only available for dedicated and self-hosted accounts.

Check out the kill API schema defined in our Swagger page.

danger

These actions cannot be undone

Examples

  1. Killing a specific session
  2. Killing all the sessions

Killing a specific session

To kill a specific session, simply issue a GET request to /kill/{id}, you can set the id with the browser ID or tracking-ID, you can find this with the help of the sessions API

You can run this with a cURL request as so:

curl -X GET \
https://chrome.browserless.io/kill/{id}?token=MY_API_TOKEN

Killing all the sessions

To kill all the open sessions, simply issue a GET request to /kill/all

You can run this with a cURL request as so:

curl -X GET \
https://chrome.browserless.io/kill/all?token=MY_API_TOKEN
warning

Remember that running this in the browser will expose your API key!