• lsamins

    (@lsamins)


    I have over 2 million entries in my log. I would like to purge them but the purge button times out due to server limitations on how long a request can run. I tried the CLI wp rest-api-log purge and the command is “killed” after a few short seconds. What other options do I have?

Viewing 1 replies (of 1 total)
  • Plugin Author Pete Nelson

    (@gungeekatx)

    If you have direct database access, these two SQL commands should bulk delete the database REST API log records. You may need to adjust the table names to match your installation.

    delete from wp_postmeta where post_id in ( select ID from wp_posts where post_type = ‘wp-rest-api-log’ );
    delete from wp_posts where post_type = ‘wp-rest-api-log’;

Viewing 1 replies (of 1 total)

The topic ‘Delete logs’ is closed to new replies.