GOLF(2gg)
π GOLF(2gg) β the delete-cookie page, bestie edition π
okay so you're here for the delete-cookie manual page from the Development section of GOLF(2gg)? slay, pull up a chair π«Ά
β¨ NAME β¨
delete-cookie β (cookies) πͺ
π― PURPOSE π―
It deletes a cookie. That's the whole job. Iconic, honestly. π
π SYNTAX π
delete-cookie <cookie name> [ path <cookie path> ] [ status <status> ] [ secure <secure> ]
π¦ DESCRIPTION π¦
delete-cookie marks a cookie named <cookie name> for deletion, so it gets sent back in the reply telling the client (like, a browser, yk) to delete it. bye bestie π
Newer client implementations require a cookie deletion to use a secure context if the cookie is considered secure, and it is recommended to use secure clause to delete such a cookie. This is the case when either secure clause is used without boolean variable <secure>, or if <secure> evaluates to true.
<cookie name> is a cookie that was either received from the client as a part of the request, or was added with set-cookie.
heads up queen β οΈ a cookie can be deleted before or after header is sent out (seeout-header). However a cookie must be deleted prior to outputting any actual response (such as withoutput-statementorprint-outfor example), or the request will error out (seeerror-handling). no cap, that's the rule π
<status> (in status clause) is a number that will be GG_ERR_EXIST if the cookie did not exist, or GG_OKAY if it did. like a little report card π
The same cookie name may be stored under different URL paths. You can use path clause to specify <cookie path> to ensure the desired cookie is deleted. lowkey important β don't delete the wrong twin π
π EXAMPLES π
delete-cookie "my_cookie"
set-bool is_secure = true
delete-cookie "my_cookie" path "/path" secure is_secure
π SEE ALSO π
- Cookies
delete-cookie get-cookie set-cookie See all documentation
and that's the vibe check, bestie β go forth and delete cookies responsibly β¨πͺ
this page is from version $VERSION and it's dated $DATE β love u, mwah πππ¦
π¦ where this page comes from
- ubuntu questing: golf 601.4.41-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms