query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'ariconsent_log' ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange -- Removing our own table on uninstall. $wpdb->query( $wpdb->prepare( 'DROP TABLE IF EXISTS %i', $wpdb->prefix . 'ariconsent_snapshots' ) ); delete_option( 'ariconsent_snapshot_hashes' ); delete_option( 'ariconsent_settings' ); delete_option( 'ariconsent_db_version' ); delete_option( 'ariconsent_detected' ); delete_option( 'ariconsent_seen' ); delete_option( 'ariconsent_unblocked' ); delete_option( 'ariconsent_scan_time' ); delete_option( 'ariconsent_scan_pages' ); wp_clear_scheduled_hook( 'ariconsent_purge_log' ); wp_clear_scheduled_hook( 'ariconsent_weekly_scan' );