Firstly, the number 100000000000 is too big for a 32 bit int and should not be used in this context. Instead put the amount of time you want the cookie to last (of course time() may start to return 64bits at some point, hopefully before 2038).
Secondly, if you did want to erase a cookie, you can do so simply by setting another cookie with the same name, domain, path and security level. If you don't want the cookie to exist at all, set an expiry date in the past (e.g. use gmmktime(0,0,0,1,1,1980))
Mark