How to Completely Remove CookieYes Plugin Data from Your WordPress Site
Content
Many WordPress users choose to uninstall the CookieYes – Cookie Banner for Cookie Consent plugin. However, a common and frustrating issue arises when remnants of the plugin, such as the cookie banner, cookies, or database tables, persist on the site even after deactivation and deletion. This guide explains why this happens and provides clear, step-by-step solutions to achieve a complete removal.
Why Does CookieYes Data Remain After Uninstalling?
There are a few primary reasons why you might still see traces of the plugin:
- Browser Cookies: The plugin sets cookies in your visitors' browsers. Uninstalling the plugin from your WordPress dashboard does not automatically clear these cookies from users' browsers.
- Server or Caching: A heavily cached site (using plugins like W3 Total Cache or LiteSpeed Cache) may continue to serve a version of your site that includes the banner. Clearing all caching layers is crucial.
- Incomplete Database Removal: By default, the plugin may not delete its configuration tables from your WordPress database upon uninstallation to preserve settings. A specific constant must be defined to force a full data wipe.
- Google Tag Manager: If you implemented the banner using a CookieYes template in Google Tag Manager (GTM), you must remove it from GTM and publish the changes, as this is separate from the WordPress plugin.
How to Perform a Complete Uninstall
Solution 1: The Standard Method (For Most Users)
- Clear Site and Browser Cache: Deactivate any caching plugins and clear their cache. Also, clear your server-level cache if you have one (e.g., from your hosting panel). Finally, clear your own browser cookies for the site.
- Define the Removal Constant: Before deactivating the plugin, you must add a specific line of code to your
wp-config.phpfile. This file is located in the root directory of your WordPress installation.
Access your wp-config.php via your hosting file manager or FTP. IMPORTANT: Always back up this file before editing.
Find the line that says/* That's all, stop editing! Happy publishing. */. Add the following line of code ABOVE it:define('CKY_REMOVE_ALL_DATA', true); - Deactivate and Delete the Plugin: Go to your WordPress admin dashboard under Plugins. Deactivate the "CookieYes" plugin, then delete it. Defining the constant first ensures all plugin database tables are removed during deletion.
- Optional: Remove the Constant: After successfully deleting the plugin, you can remove the
define('CKY_REMOVE_ALL_DATA', true);line from yourwp-config.phpfile to keep it clean.
Solution 2: If You've Already Deleted the Plugin
If you already deleted the plugin without defining the constant, follow these steps:
- Reinstall the CookieYes plugin from the WordPress repository.
- Follow Solution 1 exactly: Add the constant to
wp-config.php, then deactivate and delete the plugin again.
Solution 3: Check Google Tag Manager
If the banner persists and you previously used GTM:
- Log in to your Google Tag Manager account.
- Select the correct container for your website.
- Thoroughly check all tags, triggers, and templates for any related to "CookieYes" or "CMP".
- Remove any found CookieYes elements and publish the updated container.
What About the Cookies Already Set on Visitors' Browsers?
The plugin's cookies are stored on your users' devices, not your server. You cannot directly delete them. The solutions above prevent the plugin from setting new cookies. Existing cookies will eventually expire based on their lifespan or will be cleared when users manually clear their own browser cache and cookies.
Need More Specific Help?
If you have followed all these steps and the issue persists, the problem may be highly specific to your site's configuration. Common culprits include complex caching setups, conflicts with other plugins, or a non-standard implementation. For further independent troubleshooting, describing your specific scenario in detail on community forums can help others provide targeted advice.
Related Support Threads Support
-
Remove cookies from Cookie Consenthttps://wordpress.org/support/topic/remove-cookies-from-cookie-consent/
-
Old cookie plugin won’t go away even after deactivatinghttps://wordpress.org/support/topic/old-cookie-plugin-wont-go-away-even-after-deactivating/
-
Some javascript kept in place even after their parent plugin uninstallationhttps://wordpress.org/support/topic/some-javascript-kept-in-place-even-after-their-plugin-uninstallation/
-
Is it possible to hide the cookie icon?https://wordpress.org/support/topic/is-it-possible-to-hide-the-cookie-icon/
-
Keywordshttps://wordpress.org/support/topic/keywords-41/
-
COOKIE YES DELETING but still running on my websitehttps://wordpress.org/support/topic/cookie-yes-deleting-but-still-running-on-my-website/
-
Disable on specific pagehttps://wordpress.org/support/topic/disable-on-specific-page-3/
-
Cookies to remove w.r.t Litespeed cachehttps://wordpress.org/support/topic/cookies-to-remove-w-r-t-litespeed-cache/
-
[delete_cookies] shortcode isn’t doing what your documentation stateshttps://wordpress.org/support/topic/delete_cookies-shortcode-isnt-doing-what-your-documentation-states/
-
Uninstall pluginhttps://wordpress.org/support/topic/uninstall-plugin-23/
-
Erase Installed Cookieshttps://wordpress.org/support/topic/erase-installed-cookies/
-
nofollow cookieyes branding (SEO)https://wordpress.org/support/topic/nofollow-cookieyes-branding-seo/
-
how to get ridhttps://wordpress.org/support/topic/how-to-get-rid/
-
Uninstal Cookieyes completely for old versionhttps://wordpress.org/support/topic/uninstal-cookieyes-completely-for-old-version/
-
How to switch off on a certain page?https://wordpress.org/support/topic/how-to-switch-off-on-a-certain-page/
-
disable from a specific pagehttps://wordpress.org/support/topic/disable-from-a-specific-page/
-
Disable not working for cookie yeshttps://wordpress.org/support/topic/disable-not-working-for-cookie-yes/
-
Plugin generates its cookies although removedhttps://wordpress.org/support/topic/plugin-generates-its-cookies-although-removed/
-
Google has added a cookie messagehttps://wordpress.org/support/topic/google-has-added-a-cookie-message/
-
after installing thishttps://wordpress.org/support/topic/after-installing-this/
-
How to delete all the plugin data?https://wordpress.org/support/topic/how-to-delete-all-the-plugin-data/
-
How to delete ALLhttps://wordpress.org/support/topic/how-to-delete-all/
-
it possible to exclude pages from having gpdr bar?https://wordpress.org/support/topic/it-possible-to-exclude-pages-from-having-gpdr-bar/
-
No index cookie consenthttps://wordpress.org/support/topic/no-index-cookie-consent/
-
Option to turn off on certain pages?https://wordpress.org/support/topic/option-to-turn-off-on-certain-pages/
-
cookieshttps://wordpress.org/support/topic/cookies-99/
-
Disable CookieYes for IP address (disable it for MarkUp.io)https://wordpress.org/support/topic/disable-cookieyes-for-ip-address-disable-it-for-markup-io/
-
No index cookie consent text and wordshttps://wordpress.org/support/topic/no-index-cookie-consent-text-and-words/
-
Cookie notice hide the return to top button (divi)https://wordpress.org/support/topic/cookie-notice-hide-the-return-to-top-button-divi/
-
Can’t find DNT settingshttps://wordpress.org/support/topic/cant-find-dnt-settings/
-
W3 total cache cookieyeshttps://wordpress.org/support/topic/w3-total-cache-cookieyes/
-
cookie removalhttps://wordpress.org/support/topic/cookie-removal/
-
GDPR disable on certain pages possible?https://wordpress.org/support/topic/gdpr-disable-on-certain-pages-possible/
-
Exclude Select Pages from Consent Prompthttps://wordpress.org/support/topic/exclude-select-pages-from-consent-prompt/
-
removing plugin not possiblehttps://wordpress.org/support/topic/removing-plugin-not-possible/
-
How to delete plugin in full?https://wordpress.org/support/topic/how-to-delete-plugin-in-full/
-
Hide from directoryhttps://wordpress.org/support/topic/hide-from-directory/