We caon delete a cookies by calling same stecookie() function with the cookie name and any value.
however this time you need the set the expiration date in the past.

example :

Note :

Whene deleting a cookies,that deleting does not actually take effect untill the page has been
reloaded or new page has been accessed.Cookies will still be available of that page after delete that
cookies.if page is reloaded or another page is accessed in that browser window the cookies will be deleted.