Delete a Row from Database

Elite
  • 242 points
    WPMU DEV Expert
    I'm helpful
    kennibc

    Member  —  31st May 2011         

    Hello All,
    I have an issue where I need to delete a specific row in a table for a database and this would need to occur in a multisite setup and I was wondering if there was a way to do this easily.

    The row is found in: Main Wordpress Database > wp_1001_options > wp-piwik_settings

    I need to delete this for about 1000 blogs. so each one would be like wp_800_options > wp-piwik_settings, wp_745_options > wp-piwik_settings, etc etc, for each blog's database

    Is there a way I can query and delete the wp-piwik_settings row with a single command in MYSQL for all the blogs?