Title: Optimization &gt; Purging &gt; Empty Table &gt; All not working
Last modified: September 28, 2022

---

# Optimization > Purging > Empty Table > All not working

 *  Resolved [maltmann](https://wordpress.org/support/users/maltmann/)
 * (@maltmann)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/optimization-purging-empty-table-all-not-working/)
 * WP Statistics version 13.2.6
 * Optimization > Purging > Empty Table > All
    results in an “Access denied” message.
 * Caused by a logical issue in
    wp-statistics/includes/admin/class-wp-statistics-
   admin-ajax.php function empty_table_action_callback()
 * Line 217:
    The selected table name (in this case “all”) is compared to the valid
   table names, which does not match. “Access denied” error is returned, AJAX action
   cancelled.
 * The check for the “all” selection is only done later, including a permission 
   check (‘manage’) starting at line 222. But that’s too late. AJAX action is already
   cancelled by previous error.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Reza](https://wordpress.org/support/users/reventon94/)
 * (@reventon94)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/optimization-purging-empty-table-all-not-working/#post-16054936)
 * Hi,
 * I hope you’re doing well.
 * Thank you for reporting this issue. I told our developers about it, and they 
   will fix it ASAP.
 * Best Regards
 *  Plugin Author [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * (@mostafas1990)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/optimization-purging-empty-table-all-not-working/#post-16069152)
 * Hi,
 * Thank you for reporting, It’s fixed in this commit and the new version will be
   released soon.
    [https://github.com/wp-statistics/wp-statistics/commit/b06af8c21999d41c9374c6c50e463be0dc0954fc](https://github.com/wp-statistics/wp-statistics/commit/b06af8c21999d41c9374c6c50e463be0dc0954fc)
 *  Thread Starter [maltmann](https://wordpress.org/support/users/maltmann/)
 * (@maltmann)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/optimization-purging-empty-table-all-not-working/#post-16127362)
 * Solved in version 13.2.7.
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Optimization > Purging > Empty Table > All not working’ is closed to 
new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [maltmann](https://wordpress.org/support/users/maltmann/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/optimization-purging-empty-table-all-not-working/#post-16127362)
 * Status: resolved