Delete Cookies
DELETE/workstations/:workstation_id/browser/cookies
Delete one or more cookies from the browser's default context. Cookies are matched by name and optionally by domain and path.
Required fields for each cookie:
name
: Cookie name to delete
Optional fields:
domain
: Cookie domain to matchpath
: Cookie path to match
Example usage:
// Delete a specific cookie
await fetch('/workstations/{id}/browser/cookies', {
method: 'DELETE',
body: JSON.stringify({
cookies: [{
name: 'sessionId',
domain: '.example.com'
}]
})
});
// Delete multiple cookies
await fetch('/workstations/{id}/browser/cookies', {
method: 'DELETE',
body: JSON.stringify({
cookies: [
{ name: 'theme' },
{ name: 'lang', domain: '.example.com' }
]
})
});
Request
Responses
- 204
- 400
- 401
- 402
- 422
- 429
- 500
- 503
No Content - the operation was successful but there is no additional content to return.
Invalid Request Format - check API documentation for proper syntax.
Unauthorized - missing or invalid API key.
Payment Required - you have run out of trial credits or your payment method has expired. Please add payment details to your account.
Unprocessable Entity - cannot find requested asset associated with your API key.
Too Many Requests - you have exceeded the rate limit for your account. Please wait before making additional requests.
Internal Server Error - please retry your request.
Service Unavailable - our servers have dropped the request due to high load - please retry.