You did not mention the language driver that you are using. Regardless, it should be something along the line:
deleteCookie(cookieName, options)
Example:
deleteCookie('preferredColor', 'path=/')
For a complete API reference, see here .
In my case using PHP:
$this->deleteCookie('uagent', 'path=/');
If you want to delete each cookie, use deleteAllVisibleCookies ().
Hope this helps.
source share