Skip to content

is there any way to delete all cookies with one command #58758

Answered by icyJoseph
alirezamehrabi asked this question in Help
Discussion options

You must be logged in to vote

🤔 maybe?

 cookieStore.getAll().forEach((cookie) => {
    cookieStore.delete(cookie.name);
  });

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alirezamehrabi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@icyJoseph
Comment options

@HamedSiaban
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants