Stockholders' Equity - Additional Information (Detail) - USD ($) |
12 Months Ended | ||||
|---|---|---|---|---|---|
Jun. 30, 2019 |
Jun. 30, 2018 |
Jun. 30, 2017 |
Sep. 20, 2016 |
Sep. 16, 2013 |
|
| Share Repurchases [Line Items] | |||||
| Amount of shares repurchased to settle employee tax withholding related to vesting of stock awards | $ 2,700,000,000 | $ 2,100,000,000 | $ 1,500,000,000 | ||
| Share Repurchase Program 2013 | |||||
| Share Repurchases [Line Items] | |||||
| Amount available for repurchase under the share repurchase program approved by the company's Board of Directors | $ 40,000,000,000 | ||||
| Share Repurchase Program 2016 | |||||
| Share Repurchases [Line Items] | |||||
| Amount available for repurchase under the share repurchase program approved by the company's Board of Directors | $ 40,000,000,000 | ||||
| Unused amount of share repurchase program | $ 11,400,000,000 | ||||