query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s OR option_name LIKE %s", $wpdb->esc_like( '_transient_oorank_' ) . '%', $wpdb->esc_like( '_transient_timeout_oorank_' ) . '%' ) ); // Content-change timestamps recorded for accurate dateModified (F6). delete_post_meta_by_key( '_oorank_content_modified' ); // Remove physical llms files written as a fallback under plain permalinks. // They were written to the site root, which is where the home URL points and // not necessarily the directory WordPress itself lives in. require_once ABSPATH . 'wp-admin/includes/file.php'; $oorank_root = trailingslashit( get_home_path() ); foreach ( array( 'llms.txt', 'llms-full.txt' ) as $oorank_file ) { $oorank_path = $oorank_root . $oorank_file; if ( file_exists( $oorank_path ) ) { wp_delete_file( $oorank_path ); } } // Custom tables (F7 crawler log) land in a later milestone. Drop // wp_oorank_crawler_log here via $wpdb->query() once it exists.