Skip to main content

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 match
  • path: 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

No Content - the operation was successful but there is no additional content to return.