• Resolved Okoth1

    (@okoth1)


    Hi

    In wp_options, there is quite are large chunk of autoloaded data that I want to remove. The option_name is bwps_file_log.

    Can I remove the option_name and option_value without getting database errors on my site?

Viewing 5 replies - 1 through 5 (of 5 total)
  • nlpro

    (@nlpro)

    Hi @okoth1,

    That is a very old option that should have been removed a long time ago.

    Below a list of old options which can all be deleted from the WordPress wp_options table (this is actually an excerpt from the core/setup.php file of the current plugin database upgrade code):

    delete_option( 'bit51_bwps' );
    delete_option( 'bwps_intrusion_warning' );
    delete_option( 'bit51_bwps_data' );
    delete_option( 'bwps_file_log' );
    delete_option( 'bwps_awaymode' );
    delete_option( 'bwps_filecheck' );
    delete_option( 'BWPS_Login_Slug' );
    delete_option( 'BWPS_options' );
    delete_option( 'BWPS_versions' );
    delete_site_transient( 'bit51_bwps_backup' );
    delete_site_transient( 'bwps_away' );

    Make sure to create a database backup before deleting these options/transients.

    +++ To prevent any confusion, I’m not SolidWP +++

    Thread Starter Okoth1

    (@okoth1)

    Thanks for your prompt reply.

    Is delete_option(….) ; a WordPress way to delete old plugin data? What I mean is, can I also use it for other plugins?

    nlpro

    (@nlpro)

    Yes, any option (if not protected) can be deleted this way.
    Have a look at the WordPress code reference: delete_option()

    nlpro

    (@nlpro)

    Hi @okoth1,

    I believe your question has been answered/issue has been resolved so per the Forum Guidelines, please mark this topic as “Resolved”.

    • This reply was modified 1 year ago by nlpro.
    Thread Starter Okoth1

    (@okoth1)

    Thank you for the answers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘bwps_file_log’ is closed to new replies.