XML 72 R54.htm IDEA: XBRL DOCUMENT
v3.21.2

Derivatives Instruments and Hedging Activities - Additional Information (Details) $ in Millions | 12 Months Ended
--- | ---
Jul. 02, 2021 USD ($)
Derivative Instruments, Gain (Loss) [Line Items] |
Unrealized loss expected to be reclassified into earnings | $ 30
Foreign Exchange Forward Contracts Designated |
Derivative Instruments, Gain (Loss) [Line Items] |
Derivative, term of contract | 12 months

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DerivativeInstrumentsGainLossLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period the derivative contract is outstanding, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_DerivativeTermOfContract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The estimated net amount of unrealized gains or losses on foreign currency cash flow hedges at the reporting date expected to be reclassified to earnings within the next 12 months. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121549185&loc=d3e80748-113994 + Details
Name: | us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_DerivativeInstrumentRiskAxis=wdc_ForeignExchangeForwardContractsDesignatedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |