• Resolved derekg1023

    (@derekg1023)


    Hi There,

    I read one of the previous posts here and read that this command:
    wp rest-api-log purge

    Should purge all of the entries I have stored, however when I run this I get this output:

    Notice: Undefined index: SERVER_NAME in /var/www/dev/wp-content/plugins/wonderplugin-carousel/app/class-wonderplugin-carousel-update.php on line 17
    Notice: Undefined index: test in /var/www/dev/wp-content/plugins/wp-zero-variations/modules/hooks.php on line 27
    Success: 0 entries purged
    Purging old REST API log entries...

    I don’t believe that it is getting hung up on those two plugins but rather just not deleting the entries. I have about 150,000 entries to purge but it just doesn’t seem to be doing it.

    If there is a SQL query, I certainly can run that. Or continue to troubleshoot let me know what I can do.

    Thank you!! Wonderful plugin!
    Derek

    • This topic was modified 4 years, 3 months ago by derekg1023.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pete Nelson

    (@gungeekatx)

    Check the settings in the plugin to see how many days back you are keeping entries for. If they entries are not older than this, it the purge command won’t find them by default. You can pass in the days back via the CLI if you want to clean them up without changing the setting.

    Example for seven days: wp rest-api-log purge 7

    If that doesn’t work, this has the SQL command to delete them manually. https://www.ads-software.com/support/topic/this-will-bloat-your-sql-database/

    • This reply was modified 4 years, 3 months ago by Pete Nelson.
    Thread Starter derekg1023

    (@derekg1023)

    Hi Pete,

    Thanks a lot, that argument worked perfectly! Still deleting now, but it’s cruising along. Fast response too, thanks a lot!

    Derek

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP CLI reports no entries to delete’ is closed to new replies.