exists( $llmstxt_stored ) ) { $wp_filesystem->delete( $llmstxt_stored ); } // Remove physical root copy. $llmstxt_root = rtrim( ABSPATH, '/' ) . '/' . $llmstxt_filename; if ( $wp_filesystem->exists( $llmstxt_root ) ) { $wp_filesystem->delete( $llmstxt_root ); } } // Remove the llmstxt storage directory if now empty. if ( $wp_filesystem->is_dir( $llmstxt_dir ) ) { $wp_filesystem->rmdir( $llmstxt_dir ); } } // ── Unschedule cron events ──────────────────────────────────────────────────── $llmstxt_timestamp = wp_next_scheduled( 'llmstxt_async_regen' ); if ( $llmstxt_timestamp ) { wp_unschedule_event( $llmstxt_timestamp, 'llmstxt_async_regen' ); }