'DELETE', 'timeout' => 10, ) ); } global $wpdb; // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- WooCommerce stores these REST keys only in this table. Uninstall deletes the key this plugin created, and that result is not reused. $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->prefix}woocommerce_api_keys WHERE description LIKE %s", $wpdb->esc_like( \Oneacc\AgeCheck::install_api_key_description_prefix() ) . '%' ) ); delete_option( 'wc_oneacc_install_token' ); foreach ( Oneacc\AgeCheck::project_credential_options() as $option ) { delete_option( $option ); } } oneacc_uninstall();