v3.26.1
Restructuring and Other Charges - Narrative (Details)
$ in Millions
1 Months Ended 9 Months Ended
Nov. 25, 2025
USD ($)
employee
Nov. 18, 2022
USD ($)
employee
Jan. 31, 2026
Jul. 31, 2026
USD ($)
Jul. 31, 2025
USD ($)
Restructuring Cost and Reserve [Line Items]          
Eligible age with 10 years of service     55 years    
Charges       $ 222 $ 252
Health care coverage extension period     36 months    
Fiscal 2026 Plan          
Restructuring Cost and Reserve [Line Items]          
Restructuring and related cost, incurred cost       500  
Fiscal 2026 Plan | Labor And Non-Labor Actions          
Restructuring Cost and Reserve [Line Items]          
Estimated pre-tax charges $ 650        
Fiscal 2026 Plan | Labor Costs          
Restructuring Cost and Reserve [Line Items]          
Estimated pre-tax charges $ 500        
Fiscal 2026 Plan | Severance          
Restructuring Cost and Reserve [Line Items]          
Charges       200 $ 0
Fiscal 2023 Plan          
Restructuring Cost and Reserve [Line Items]          
Expected number of positions to be eliminated | employee   9,500      
Restructuring and related cost, incurred cost       1,200  
Fiscal 2023 Plan | Severance costs          
Restructuring Cost and Reserve [Line Items]          
Restructuring and related cost, incurred cost   $ 865      
Fiscal 2023 Plan | Infrastructure costs          
Restructuring Cost and Reserve [Line Items]          
Restructuring and related cost, incurred cost   $ 347      
Enhanced Early Retirement | Special Termination Benefit          
Restructuring Cost and Reserve [Line Items]          
Charges       220  
Other charges       $ 60  
Minimum | Fiscal 2026 Plan          
Restructuring Cost and Reserve [Line Items]          
Expected number of positions to be eliminated | employee 4,000        
Maximum | Fiscal 2026 Plan          
Restructuring Cost and Reserve [Line Items]          
Expected number of positions to be eliminated | employee 6,000