Reference

destroySession

Deletes the current session record when present and appends an expiring session cookie to the response.

Signature

function destroySession<TData>(request: Request, response: Response, store: SessionStore<TData>, options: SessionCookieOptions): Promise<void>