delete cookies by domain javascript

JavaScript
document.cookie = 'my_cookie=; path=/; domain=.example.com; expires=' + new Date(0).toUTCString();
Source

Also in JavaScript: