The simple setcookie("CookieName", "", time()-3600) function did not work for me. Only when I added the path "/" as a fourth argument, the cookie was deleted from the system.