Property and Equipment - Additional Information (Detail) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2020 |
Jun. 30, 2019 |
Jun. 30, 2018 |
|
| Property, Plant and Equipment [Line Items] | |||
| Depreciation expense | $ 10,700 | $ 9,700 | $ 7,700 |
| Leasehold Improvements | |||
| Property, Plant and Equipment [Line Items] | |||
| Impairment charges related to leasehold improvements | $ 186 | ||
| Building, Building Improvements and Leasehold Improvements | |||
| Property, Plant and Equipment [Line Items] | |||
| Committed for construction of new buildings, building improvements and leasehold improvements | $ 5,000 | ||