# Cookies stays after user changed consent

**URL:** <https://community.piwik.pro/t/cookies-stays-after-user-changed-consent/2905>\
**Category:** Privacy\
**Created:** [September 15, 2023, 9:16am UTC](https://community.piwik.pro/t/cookies-stays-after-user-changed-consent/2905 "2023-09-15T09:16:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian](https://avatars.discourse-cdn.com/v4/letter/c/b2d939/32.png) [@christian](https://community.piwik.pro/u/christian)\
**Post date:** [September 15, 2023, 9:16am UTC](https://community.piwik.pro/t/cookies-stays-after-user-changed-consent/2905/1 "2023-09-15T09:16:57Z")

</div>

Hi. Im installing Piwiks consent banner on a website and when a user first accepts cookies and then open up the cookie modal again and change their consent to “decline all” I still see cookies from Piwik. How can I remove them after a user changed their consent?

---

<div class="post-metadata">

**Author:** ![Oliwer\_Kaczmarek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/oliwer_kaczmarek/32/3888_2.png) [@Oliwer\_Kaczmarek](https://community.piwik.pro/u/Oliwer_Kaczmarek)\
**Post date:** [September 15, 2023, 1:20pm UTC](https://community.piwik.pro/t/cookies-stays-after-user-changed-consent/2905/2 "2023-09-15T13:20:44Z")

</div>

Hi @christian,

Welcome to our community!

They are removed with next reload of a page. When you change your decision back to declined the ppms\_privacy cookie is updated with new values. Then with the next page view this ppms\_privacy cookie is checked what is the status of it and if the status says that the pk\_id and pk\_ses cookies should be deleted then they are. But even on the page that the status change occured we see them as anonymous. Which you can confirm just by looking at the session of this user in tracker debugger (for example IP address is changed to 0.0.0.0 instead of normal one)

Best,  
Oliwer
