Js delete cookie

var date=new Date ();
date.setTime (date.getTime ()-1000)
document.cookie= "flag=2; expires=" + date.toUTCString ();

the above code can delete the cookie. when flag=2

the problem is that the value of my flag may be 0 12, these three states,
excuse me, how to delete the cookie? of flag at this time

Feb.15,2022

it deletes flag this cookie , the value is not important

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e493cb-44d18.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e493cb-44d18.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?