fun appendExpired(name: String, domain: String? = null, path: String? = null)

Deprecated (with error)

This method doesn't bypass all flags and extensions so it will be removed in future major release. Please consider using append with expires parameter instead.

Replace with

append(name, "", CookieEncoding.URI_ENCODING, 0, GMTDate(), domain, path, secure, httpOnly, extensions)

Appends an already expired cookie. Useful to remove client cookies.