<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2024 Workiva-->
<!--r:171fbf21-f849-4331-8f75-e01c78ec23fe,g:fe6fe59e-09bc-4f9f-9357-f3fca8d113f0-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:wdc="http://www.wdc.com/20240628" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types1="http://www.xbrl.org/dtr/type/2020-01-21" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2022-03-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.wdc.com/20240628">
  <xs:import namespace="http://fasb.org/srt/2024" schemaLocation="https://xbrl.fasb.org/srt/2024/elts/srt-2024.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2024" schemaLocation="https://xbrl.fasb.org/us-gaap/2024/elts/us-gaap-2024.xsd"/>
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://www.xbrl.org/2003/xlink-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2020-01-21" schemaLocation="https://www.xbrl.org/dtr/type/2020-01-21/types.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2022-03-31" schemaLocation="https://www.xbrl.org/dtr/type/2022-03-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/country/2024" schemaLocation="https://xbrl.sec.gov/country/2024/country-2024.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2024" schemaLocation="https://xbrl.sec.gov/dei/2024/dei-2024.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2024" schemaLocation="https://xbrl.sec.gov/ecd/2024/ecd-2024.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="wdc-20240628_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="wdc-20240628_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="wdc-20240628_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="wdc-20240628_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="CoverPage" roleURI="http://www.wdc.com/role/CoverPage">
        <link:definition>0000001 - Document - Cover Page</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AuditInformation" roleURI="http://www.wdc.com/role/AuditInformation">
        <link:definition>0000002 - Document - Audit Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedBalanceSheets" roleURI="http://www.wdc.com/role/ConsolidatedBalanceSheets">
        <link:definition>9952151 - Statement - Consolidated Balance Sheets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedBalanceSheetsParenthetical" roleURI="http://www.wdc.com/role/ConsolidatedBalanceSheetsParenthetical">
        <link:definition>9952152 - Statement - Consolidated Balance Sheets (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofOperations" roleURI="http://www.wdc.com/role/ConsolidatedStatementsofOperations">
        <link:definition>9952153 - Statement - Consolidated Statements of Operations</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofComprehensiveIncomeLoss" roleURI="http://www.wdc.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss">
        <link:definition>9952154 - Statement - Consolidated Statements of Comprehensive Income (Loss)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofCashFlows" roleURI="http://www.wdc.com/role/ConsolidatedStatementsofCashFlows">
        <link:definition>9952155 - Statement - Consolidated Statements of Cash Flows</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofConvertiblePreferredStockandShareholdersEquity" roleURI="http://www.wdc.com/role/ConsolidatedStatementsofConvertiblePreferredStockandShareholdersEquity">
        <link:definition>9952156 - Statement - Consolidated Statements of Convertible Preferred Stock and Shareholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OrganizationandBasisofPresentation" roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentation">
        <link:definition>9952157 - Disclosure - Organization and Basis of Presentation</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RecentAccountingPronouncements" roleURI="http://www.wdc.com/role/RecentAccountingPronouncements">
        <link:definition>9952158 - Disclosure - Recent Accounting Pronouncements</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessSegmentsGeographicInformationandConcentrationsofRisk" roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRisk">
        <link:definition>9952159 - Disclosure - Business Segments, Geographic Information, and Concentrations of Risk</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementData" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementData">
        <link:definition>9952160 - Disclosure - Supplemental Financial Statement Data</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueMeasurementsandInvestments" roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestments">
        <link:definition>9952161 - Disclosure - Fair Value Measurements and Investments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeInstrumentsandHedgingActivities" roleURI="http://www.wdc.com/role/DerivativeInstrumentsandHedgingActivities">
        <link:definition>9952162 - Disclosure - Derivative Instruments and Hedging Activities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Debt" roleURI="http://www.wdc.com/role/Debt">
        <link:definition>9952163 - Disclosure - Debt</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="PensionandOtherPostRetirementBenefitPlans" roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlans">
        <link:definition>9952164 - Disclosure - Pension and Other Post-Retirement Benefit Plans</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedPartiesandRelatedCommitmentsandContingencies" roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingencies">
        <link:definition>9952165 - Disclosure - Related Parties and Related Commitments and Contingencies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesandOtherCommitments" roleURI="http://www.wdc.com/role/LeasesandOtherCommitments">
        <link:definition>9952166 - Disclosure - Leases and Other Commitments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="WesternDigitalCorporation401kPlan" roleURI="http://www.wdc.com/role/WesternDigitalCorporation401kPlan">
        <link:definition>9952167 - Disclosure - Western Digital Corporation 401(k) Plan</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStock" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStock">
        <link:definition>9952168 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpense" roleURI="http://www.wdc.com/role/IncomeTaxExpense">
        <link:definition>9952169 - Disclosure - Income Tax Expense</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossPerCommonShare" roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShare">
        <link:definition>9952170 - Disclosure - Net Income (Loss) Per Common Share</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EmployeeTerminationAssetImpairmentandOtherCharges" roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherCharges">
        <link:definition>9952171 - Disclosure - Employee Termination, Asset Impairment and Other Charges</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplierFinanceProgram" roleURI="http://www.wdc.com/role/SupplierFinanceProgram">
        <link:definition>9952172 - Disclosure - Supplier Finance Program</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LegalProceedings" roleURI="http://www.wdc.com/role/LegalProceedings">
        <link:definition>9952173 - Disclosure - Legal Proceedings</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevisionofPreviouslyIssuedFinancialStatements" roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatements">
        <link:definition>9952174 - Disclosure - Revision of Previously Issued Financial Statements</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OrganizationandBasisofPresentationPolicies" roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationPolicies">
        <link:definition>9954471 - Disclosure - Organization and Basis of Presentation (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessSegmentsGeographicInformationandConcentrationsofRiskTables" roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskTables">
        <link:definition>9954472 - Disclosure - Business Segments, Geographic Information, and Concentrations of Risk (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementDataTables" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTables">
        <link:definition>9954473 - Disclosure - Supplemental Financial Statement Data (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueMeasurementsandInvestmentsTables" roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsTables">
        <link:definition>9954474 - Disclosure - Fair Value Measurements and Investments (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtTables" roleURI="http://www.wdc.com/role/DebtTables">
        <link:definition>9954475 - Disclosure - Debt (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="PensionandOtherPostRetirementBenefitPlansTables" roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansTables">
        <link:definition>9954476 - Disclosure - Pension and Other Post-Retirement Benefit Plans (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedPartiesandRelatedCommitmentsandContingenciesTables" roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesTables">
        <link:definition>9954477 - Disclosure - Related Parties and Related Commitments and Contingencies (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesandOtherCommitmentsTables" roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsTables">
        <link:definition>9954478 - Disclosure - Leases and Other Commitments (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStockTables" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockTables">
        <link:definition>9954479 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpenseTables" roleURI="http://www.wdc.com/role/IncomeTaxExpenseTables">
        <link:definition>9954480 - Disclosure - Income Tax Expense (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossPerCommonShareTables" roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareTables">
        <link:definition>9954481 - Disclosure - Net Income (Loss) Per Common Share (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EmployeeTerminationAssetImpairmentandOtherChargesTables" roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesTables">
        <link:definition>9954482 - Disclosure - Employee Termination, Asset Impairment and Other Charges (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevisionofPreviouslyIssuedFinancialStatementsTables" roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsTables">
        <link:definition>9954483 - Disclosure - Revision of Previously Issued Financial Statements (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OrganizationandBasisofPresentationAdditionalInformationDetails" roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationAdditionalInformationDetails">
        <link:definition>9954484 - Disclosure - Organization and Basis of Presentation - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="OrganizationandBasisofPresentationPropertyPlantandEquipmentUsefulLifeDetails" roleURI="http://www.wdc.com/role/OrganizationandBasisofPresentationPropertyPlantandEquipmentUsefulLifeDetails">
        <link:definition>9954485 - Disclosure - Organization and Basis of Presentation - Property, Plant and Equipment Useful Life (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessSegmentsGeographicInformationandConcentrationsofRiskSegmentReportingInformationbySegmentDetails" roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskSegmentReportingInformationbySegmentDetails">
        <link:definition>9954486 - Disclosure - Business Segments, Geographic Information, and Concentrations of Risk - Segment Reporting Information, by Segment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessSegmentsGeographicInformationandConcentrationsofRiskDisaggregationofRevenueDetails" roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskDisaggregationofRevenueDetails">
        <link:definition>9954487 - Disclosure - Business Segments, Geographic Information, and Concentrations of Risk - Disaggregation of Revenue (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessSegmentsGeographicInformationandConcentrationsofRiskRevenuebyGeographyDetails" roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskRevenuebyGeographyDetails">
        <link:definition>9954488 - Disclosure - Business Segments, Geographic Information, and Concentrations of Risk - Revenue by Geography (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessSegmentsGeographicInformationandConcentrationsofRiskLonglivedAssetsbyGeographyDetails" roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskLonglivedAssetsbyGeographyDetails">
        <link:definition>9954489 - Disclosure - Business Segments, Geographic Information, and Concentrations of Risk - Long-lived Assets by Geography (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessSegmentsGeographicInformationandConcentrationsofRiskAdditionalInformationDetails" roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskAdditionalInformationDetails">
        <link:definition>9954490 - Disclosure - Business Segments, Geographic Information, and Concentrations of Risk - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="BusinessSegmentsGeographicInformationandConcentrationsofRiskGoodwillRollforwardDetails" roleURI="http://www.wdc.com/role/BusinessSegmentsGeographicInformationandConcentrationsofRiskGoodwillRollforwardDetails">
        <link:definition>9954491 - Disclosure - Business Segments, Geographic Information, and Concentrations of Risk - Goodwill Rollforward (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementDataAdditionalInformationDetails" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAdditionalInformationDetails">
        <link:definition>9954492 - Disclosure - Supplemental Financial Statement Data - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementDataInventoryDetails" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataInventoryDetails">
        <link:definition>9954493 - Disclosure - Supplemental Financial Statement Data - Inventory (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataPropertyPlantandEquipmentDetails">
        <link:definition>9954494 - Disclosure - Supplemental Financial Statement Data - Property, Plant and Equipment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementDataMovementinStandardProductWarrantyAccrualDetails" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataMovementinStandardProductWarrantyAccrualDetails">
        <link:definition>9954495 - Disclosure - Supplemental Financial Statement Data - Movement in Standard Product Warranty Accrual (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementDataTotalWarrantyAccrualDetails" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataTotalWarrantyAccrualDetails">
        <link:definition>9954496 - Disclosure - Supplemental Financial Statement Data - Total Warranty Accrual (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementDataOtherLiabilitiesDetails" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataOtherLiabilitiesDetails">
        <link:definition>9954497 - Disclosure - Supplemental Financial Statement Data - Other Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails" roleURI="http://www.wdc.com/role/SupplementalFinancialStatementDataAccumulatedOtherComprehensiveLossRollForwardDetails">
        <link:definition>9954498 - Disclosure - Supplemental Financial Statement Data - Accumulated Other Comprehensive Loss Roll Forward (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail" roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsFinancialAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetail">
        <link:definition>9954499 - Disclosure - Fair Value Measurements and Investments - Financial Assets and Liabilities Measured at Fair Value on Recurring Basis (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails" roleURI="http://www.wdc.com/role/FairValueMeasurementsandInvestmentsDebtInstrumentFairValueDetails">
        <link:definition>9954500 - Disclosure - Fair Value Measurements and Investments - Debt Instrument Fair Value (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DerivativeInstrumentsandHedgingActivitiesAdditionalInformationDetails" roleURI="http://www.wdc.com/role/DerivativeInstrumentsandHedgingActivitiesAdditionalInformationDetails">
        <link:definition>9954501 - Disclosure - Derivative Instruments and Hedging Activities - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtScheduleofDebtDetails" roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails">
        <link:definition>9954502 - Disclosure - Debt - Schedule of Debt (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtScheduleofDebtDetails_1" roleURI="http://www.wdc.com/role/DebtScheduleofDebtDetails_1">
        <link:definition>9954502 - Disclosure - Debt - Schedule of Debt (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtAdditionalInformationDetails" roleURI="http://www.wdc.com/role/DebtAdditionalInformationDetails">
        <link:definition>9954503 - Disclosure - Debt - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtScheduleofLeverageRatiosDetails" roleURI="http://www.wdc.com/role/DebtScheduleofLeverageRatiosDetails">
        <link:definition>9954504 - Disclosure - Debt - Schedule of Leverage Ratios (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="DebtDebtMaturitiesDetails" roleURI="http://www.wdc.com/role/DebtDebtMaturitiesDetails">
        <link:definition>9954505 - Disclosure - Debt - Debt Maturities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="PensionandOtherPostRetirementBenefitPlansAdditionalInformationDetails" roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansAdditionalInformationDetails">
        <link:definition>9954506 - Disclosure - Pension and Other Post-Retirement Benefit Plans - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="PensionandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails" roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansObligationsandFundedStatusDetails">
        <link:definition>9954507 - Disclosure - Pension and Other Post-Retirement Benefit Plans - Obligations and Funded Status (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="PensionandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails" roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansUnfundedAmountsRecognizedonConsolidatedBalanceSheetsDetails">
        <link:definition>9954508 - Disclosure - Pension and Other Post-Retirement Benefit Plans - Unfunded Amounts Recognized on Consolidated Balance Sheets (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitObligationsDetails" roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitObligationsDetails">
        <link:definition>9954509 - Disclosure - Pension and Other Post-Retirement Benefit Plans - Weighted-Average Actuarial Assumptions used to Determine Benefit Obligations (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitCostsDetails" roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansWeightedAverageActuarialAssumptionsusedtoDetermineBenefitCostsDetails">
        <link:definition>9954510 - Disclosure - Pension and Other Post-Retirement Benefit Plans - Weighted-Average Actuarial Assumptions used to Determine Benefit Costs (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="PensionandOtherPostRetirementBenefitPlansDefinedBenefitPensionPlansMajorAssetCategoriesandTheirAssociatedFairValuesDetails" roleURI="http://www.wdc.com/role/PensionandOtherPostRetirementBenefitPlansDefinedBenefitPensionPlansMajorAssetCategoriesandTheirAssociatedFairValuesDetails">
        <link:definition>9954511 - Disclosure - Pension and Other Post-Retirement Benefit Plans - Defined Benefit Pension Plans' Major Asset Categories and Their Associated Fair Values (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails" roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesAdditionalInformationDetails">
        <link:definition>9954512 - Disclosure - Related Parties and Related Commitments and Contingencies - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails" roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesEquityInvestmentsDetails">
        <link:definition>9954513 - Disclosure - Related Parties and Related Commitments and Contingencies - Equity Investments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails" roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesMaximumLossExposureDetails">
        <link:definition>9954514 - Disclosure - Related Parties and Related Commitments and Contingencies - Maximum Loss Exposure (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails" roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJVLeaseGuaranteesDetails">
        <link:definition>9954515 - Disclosure - Related Parties and Related Commitments and Contingencies - JV Lease Guarantees (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails" roleURI="http://www.wdc.com/role/RelatedPartiesandRelatedCommitmentsandContingenciesJointVentureLeaseAmountsDetails">
        <link:definition>9954516 - Disclosure - Related Parties and Related Commitments and Contingencies - Joint Venture Lease Amounts (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesandOtherCommitmentsSupplementalBalanceSheetDetails" roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalBalanceSheetDetails">
        <link:definition>9954517 - Disclosure - Leases and Other Commitments - Supplemental Balance Sheet (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesandOtherCommitmentsSupplementalCashFlowDetails" roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsSupplementalCashFlowDetails">
        <link:definition>9954518 - Disclosure - Leases and Other Commitments - Supplemental Cash Flow (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesandOtherCommitmentsMinimumLeasePaymentsDetails" roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails">
        <link:definition>9954519 - Disclosure - Leases and Other Commitments - Minimum Lease Payments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesandOtherCommitmentsMinimumLeasePaymentsDetails_1" roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsMinimumLeasePaymentsDetails_1">
        <link:definition>9954519 - Disclosure - Leases and Other Commitments - Minimum Lease Payments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesandOtherCommitmentsAdditionalInformationDetails" roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsAdditionalInformationDetails">
        <link:definition>9954520 - Disclosure - Leases and Other Commitments - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LeasesandOtherCommitmentsLongTermCommitmentsDetails" roleURI="http://www.wdc.com/role/LeasesandOtherCommitmentsLongTermCommitmentsDetails">
        <link:definition>9954521 - Disclosure - Leases and Other Commitments - Long-Term Commitments (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="WesternDigitalCorporation401kPlanAdditionalInformationDetails" roleURI="http://www.wdc.com/role/WesternDigitalCorporation401kPlanAdditionalInformationDetails">
        <link:definition>9954522 - Disclosure - Western Digital Corporation 401(k) Plan - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStock2021LongTermIncentivePlanandESPPDetails" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStock2021LongTermIncentivePlanandESPPDetails">
        <link:definition>9954523 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock - 2021 Long Term Incentive Plan and ESPP (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockBasedCompensationExpenseDetails">
        <link:definition>9954524 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock - Stock-Based Compensation Expense (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStockUnrecognizedSharebasedCompensationDetails" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockUnrecognizedSharebasedCompensationDetails">
        <link:definition>9954525 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock - Unrecognized Share-based Compensation (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStockStockOptionActivityDetails" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockOptionActivityDetails">
        <link:definition>9954526 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock - Stock Option Activity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStockRestrictedStockUnitsAndPerformanceShareUnitsDetails" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockRestrictedStockUnitsAndPerformanceShareUnitsDetails">
        <link:definition>9954527 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock - Restricted Stock Units And Performance Share Units (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStockFairValuesAssumptionsUserForEmployeeStockPurchasePlanGrantedDetails" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockFairValuesAssumptionsUserForEmployeeStockPurchasePlanGrantedDetails">
        <link:definition>9954528 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock - Fair Values Assumptions User For Employee Stock Purchase Plan Granted (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStockConvertiblePreferredStockDetails" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockConvertiblePreferredStockDetails">
        <link:definition>9954529 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock - Convertible Preferred Stock (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ShareholdersEquityandConvertiblePreferredStockStockReservedforIssuanceDetails" roleURI="http://www.wdc.com/role/ShareholdersEquityandConvertiblePreferredStockStockReservedforIssuanceDetails">
        <link:definition>9954530 - Disclosure - Shareholders&#8217; Equity and Convertible Preferred Stock - Stock Reserved for Issuance (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails" roleURI="http://www.wdc.com/role/IncomeTaxExpenseDomesticandForeignComponentsofIncomeBeforeIncomeTaxesDetails">
        <link:definition>9954531 - Disclosure - Income Tax Expense - Domestic and Foreign Components of Income Before Income Taxes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails" roleURI="http://www.wdc.com/role/IncomeTaxExpenseComponentsofProvisionforIncomeTaxesDetails">
        <link:definition>9954532 - Disclosure - Income Tax Expense - Components of Provision for Income Taxes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails" roleURI="http://www.wdc.com/role/IncomeTaxExpenseDeferredTaxAssetsandLiabilitiesDetails">
        <link:definition>9954533 - Disclosure - Income Tax Expense - Deferred Tax Assets and Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpenseAdditionalInformationDetails" roleURI="http://www.wdc.com/role/IncomeTaxExpenseAdditionalInformationDetails">
        <link:definition>9954534 - Disclosure - Income Tax Expense - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails" roleURI="http://www.wdc.com/role/IncomeTaxExpenseReconciliationoftheUSFederalstatutoryrateDetails">
        <link:definition>9954535 - Disclosure - Income Tax Expense - Reconciliation of the U.S. Federal statutory rate (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpenseNOLCarryforwardDetails" roleURI="http://www.wdc.com/role/IncomeTaxExpenseNOLCarryforwardDetails">
        <link:definition>9954536 - Disclosure - Income Tax Expense - NOL Carryforward (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxExpenseUnrecognizedTaxBenefitsDetails" roleURI="http://www.wdc.com/role/IncomeTaxExpenseUnrecognizedTaxBenefitsDetails">
        <link:definition>9954537 - Disclosure - Income Tax Expense - Unrecognized Tax Benefits (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="NetIncomeLossPerCommonShareDetails" roleURI="http://www.wdc.com/role/NetIncomeLossPerCommonShareDetails">
        <link:definition>9954538 - Disclosure - Net Income (Loss) Per Common Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails" roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesExpenseRecognitionDetails">
        <link:definition>9954539 - Disclosure - Employee Termination, Asset Impairment and Other Charges - Expense Recognition (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails" roleURI="http://www.wdc.com/role/EmployeeTerminationAssetImpairmentandOtherChargesBusinessRealignmentActivitiesDetails">
        <link:definition>9954540 - Disclosure - Employee Termination, Asset Impairment and Other Charges - Business Realignment Activities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SupplierFinanceProgramDetails" roleURI="http://www.wdc.com/role/SupplierFinanceProgramDetails">
        <link:definition>9954541 - Disclosure - Supplier Finance Program (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LegalProceedingsAdditionalInformationDetails" roleURI="http://www.wdc.com/role/LegalProceedingsAdditionalInformationDetails">
        <link:definition>9954542 - Disclosure - Legal Proceedings - Additional Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofOperationsDetails" roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofOperationsDetails">
        <link:definition>9954543 - Disclosure - Revision of Previously Issued Financial Statements - Condensed Consolidated Statement of Operations (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofComprehensiveLossDetails" roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofComprehensiveLossDetails">
        <link:definition>9954544 - Disclosure - Revision of Previously Issued Financial Statements - Condensed Consolidated Statement of Comprehensive Loss (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofCashFlowsDetails" roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofCashFlowsDetails">
        <link:definition>9954545 - Disclosure - Revision of Previously Issued Financial Statements - Condensed Consolidated Statement of Cash Flows (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofShareholdersEquityDetails" roleURI="http://www.wdc.com/role/RevisionofPreviouslyIssuedFinancialStatementsCondensedConsolidatedStatementofShareholdersEquityDetails">
        <link:definition>9954546 - Disclosure - Revision of Previously Issued Financial Statements - Condensed Consolidated Statement of Shareholders&#8217; Equity (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="wdc_AuditInformationAbstract" abstract="true" name="AuditInformationAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="wdc_NotesReceivableAndInvestmentsInRelatedParties" abstract="false" name="NotesReceivableAndInvestmentsInRelatedParties" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_EmployeeTerminationAssetImpairmentAndOtherCharges" abstract="false" name="EmployeeTerminationAssetImpairmentAndOtherCharges" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_NonCashPortionOfAssetImpairment" abstract="false" name="NonCashPortionOfAssetImpairment" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_PaymentsForLongTermLoansForRelatedParties" abstract="false" name="PaymentsForLongTermLoansForRelatedParties" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_ProceedsFromLongTermLoansForRelatedParties" abstract="false" name="ProceedsFromLongTermLoansForRelatedParties" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans" abstract="false" name="TaxesPaidOnVestedStockAwardsUnderEmployeeStockPlans" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_PaymentsForRepurchaseOfDebt" abstract="false" name="PaymentsForRepurchaseOfDebt" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_NoncashExchangeOfTermLoan" abstract="false" name="NoncashExchangeOfTermLoan" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_TemporaryEquityStockIssuedDuringPeriodSharesNewIssues" abstract="false" name="TemporaryEquityStockIssuedDuringPeriodSharesNewIssues" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="wdc_TemporaryEquitySharesConversionOfConvertibleSecurities" abstract="false" name="TemporaryEquitySharesConversionOfConvertibleSecurities" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="wdc_TemporaryEquityValueConversionOfConvertibleSecurities" abstract="false" name="TemporaryEquityValueConversionOfConvertibleSecurities" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_AdjustmentsToAdditionalPaidInCapitalPurchaseOfCappedCalls" abstract="false" name="AdjustmentsToAdditionalPaidInCapitalPurchaseOfCappedCalls" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_StockIssuedDuringPeriodValueIncreaseDecreaseForEmployeeStockPurchasePlan" abstract="false" name="StockIssuedDuringPeriodValueIncreaseDecreaseForEmployeeStockPurchasePlan" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_RelatedPartiesAndRelatedCommitmentsAndContingenciesTextBlock" abstract="false" name="RelatedPartiesAndRelatedCommitmentsAndContingenciesTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_EmployeeTerminationBenefitsAndOtherChargesDisclosureTextBlock" abstract="false" name="EmployeeTerminationBenefitsAndOtherChargesDisclosureTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_RevisionOfPreviouslyIssuedFinancialStatementsPolicyTextBlock" abstract="false" name="RevisionOfPreviouslyIssuedFinancialStatementsPolicyTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="wdc_RelatedCostsAndFairValuesBasedOnQuotedMarketPricesTableTextBlock" abstract="false" name="RelatedCostsAndFairValuesBasedOnQuotedMarketPricesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_DebtInstrumentScheduleOfLeverageRatioTableTextBlock" abstract="false" name="DebtInstrumentScheduleOfLeverageRatioTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="wdc_NotesReceivableAndInvestmentsInRelatedPartiesTableTextBlock" abstract="false" name="NotesReceivableAndInvestmentsInRelatedPartiesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_VariableInterestEntityMaximumLossExposureTableTextBlock" abstract="false" name="VariableInterestEntityMaximumLossExposureTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_RemainingGuaranteeObligationsTableTextBlock" abstract="false" name="RemainingGuaranteeObligationsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_LesseeOperatingLeasesSupplementalBalanceSheetDisclosuresTableTextBlock" abstract="false" name="LesseeOperatingLeasesSupplementalBalanceSheetDisclosuresTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_EmployeeServiceSharebasedCompensationUnrecognizedCostsTableTextBlock" abstract="false" name="EmployeeServiceSharebasedCompensationUnrecognizedCostsTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_SummarizedTableOfAllSharesOfCommonStockReservedForIssuanceTableTableTextBlock" abstract="false" name="SummarizedTableOfAllSharesOfCommonStockReservedForIssuanceTableTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:textBlockItemType"/>
  <xs:element id="wdc_ScheduleOfMajorForeignJurisdictionsTableTextBlockTableTextBlock" abstract="false" name="ScheduleOfMajorForeignJurisdictionsTableTextBlockTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="wdc_ProductWarrantyTerm" abstract="false" name="ProductWarrantyTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="wdc_FlashSegmentMember" abstract="true" name="FlashSegmentMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_HDDMember" abstract="true" name="HDDMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_RecoveryFromContaminationIncident" abstract="false" name="RecoveryFromContaminationIncident" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_ChargesRelatedToPowerOutageIncidentAndRelatedRecovery" abstract="false" name="ChargesRelatedToPowerOutageIncidentAndRelatedRecovery" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_GrossMarginPercentage" abstract="false" name="GrossMarginPercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_CloudMember" abstract="true" name="CloudMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ClientDevicesMember" abstract="true" name="ClientDevicesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ConsumerMember" abstract="true" name="ConsumerMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_OtherMember" abstract="true" name="OtherMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_TopTenCustomersMember" abstract="true" name="TopTenCustomersMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_CustomerOneMember" abstract="true" name="CustomerOneMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_CustomerTwoMember" abstract="true" name="CustomerTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_NumberOfFiniteLivedIntangibleAssetsThatReachedTechnologicalFeasibility" abstract="false" name="NumberOfFiniteLivedIntangibleAssetsThatReachedTechnologicalFeasibility" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="wdc_SupplementalFinancialInformationTable" abstract="true" name="SupplementalFinancialInformationTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_ComputerEquipmentandSoftwareMember" abstract="true" name="ComputerEquipmentandSoftwareMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_SupplementalFinancialInformationLineItems" abstract="true" name="SupplementalFinancialInformationLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="wdc_OtherMiscellaneousLiabilitiesNoncurrent" abstract="false" name="OtherMiscellaneousLiabilitiesNoncurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_AccumulatedOtherComprehensiveIncomeRollforwardAbstract" abstract="true" name="AccumulatedOtherComprehensiveIncomeRollforwardAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="wdc_AccumulatedOtherComprehensiveIncomeLossRollForward" abstract="true" name="AccumulatedOtherComprehensiveIncomeLossRollForward" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="wdc_OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember" abstract="true" name="OnePointFiftyPercentSeniorConvertibleNotesDueTwoThousandTwentyFourMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ConvertibleNotesDue20283.00Member" abstract="true" name="ConvertibleNotesDue20283.00Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember" abstract="true" name="FourPointSeventyFivePercentSeniorUnsecuredNotesDueTwoThousandTwentySixMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_TermLoanA2Member" abstract="true" name="TermLoanA2Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember" abstract="true" name="TwoPointEightyFivePercentSeniorNotesDueTwoThousandTwentyNineMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ThreePointTenPercentSeniorNotesDueTwoThousandThirtyTwoMember" abstract="true" name="ThreePointTenPercentSeniorNotesDueTwoThousandThirtyTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ForeignExchangeForwardContractsDesignatedMember" abstract="true" name="ForeignExchangeForwardContractsDesignatedMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ThreePointZeroZeroPercentConvertibleNotesDueTwoThousandTwentyEightMember" abstract="true" name="ThreePointZeroZeroPercentConvertibleNotesDueTwoThousandTwentyEightMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_RevolvingCreditFacility2027Member" abstract="true" name="RevolvingCreditFacility2027Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ThreePointHundredPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember" abstract="true" name="ThreePointHundredPercentSeniorUnsecuredNotesDueTwoThousandThirtyTwoMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantMinimumLiquidityAmount" abstract="false" name="DebtInstrumentCovenantMinimumLiquidityAmount" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantPeriodAxis" abstract="true" name="DebtInstrumentCovenantPeriodAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantPeriodDomain" abstract="true" name="DebtInstrumentCovenantPeriodDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantPeriodFiveMember" abstract="true" name="DebtInstrumentCovenantPeriodFiveMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantPeriodSixMember" abstract="true" name="DebtInstrumentCovenantPeriodSixMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantPeriodSevenMember" abstract="true" name="DebtInstrumentCovenantPeriodSevenMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantPeriodEightMember" abstract="true" name="DebtInstrumentCovenantPeriodEightMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantPeriodNineMember" abstract="true" name="DebtInstrumentCovenantPeriodNineMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantPeriodTenMember" abstract="true" name="DebtInstrumentCovenantPeriodTenMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_DebtInstrumentCovenantLeverageRatioMaximum" abstract="false" name="DebtInstrumentCovenantLeverageRatioMaximum" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="wdc_LongTermDebtMaturityRepaymentsOfPrincipalInYearFiveAndThereafter" abstract="false" name="LongTermDebtMaturityRepaymentsOfPrincipalInYearFiveAndThereafter" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_DefinedBenefitPlanOtherAssetsMember" abstract="true" name="DefinedBenefitPlanOtherAssetsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_PriorServiceCreditsForDefinedBenefitPensionPlansIncludedInAccumulatedOtherComprehensiveIncomeAtBalanceSheetDate" abstract="false" name="PriorServiceCreditsForDefinedBenefitPensionPlansIncludedInAccumulatedOtherComprehensiveIncomeAtBalanceSheetDate" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_DefinedBenefitPlanEstimatedAnnualBenefitsPaymentPeriod" abstract="false" name="DefinedBenefitPlanEstimatedAnnualBenefitsPaymentPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="wdc_DefinedBenefitPlanEquityCommingledMutualFundsMember" abstract="true" name="DefinedBenefitPlanEquityCommingledMutualFundsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DefinedBenefitPlanFixedIncomeCommingledMutualFundsMember" abstract="true" name="DefinedBenefitPlanFixedIncomeCommingledMutualFundsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_NetPlanAssetsSubjectToLevelingMember" abstract="true" name="NetPlanAssetsSubjectToLevelingMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_RealEstateInvestmentTrustMember" abstract="true" name="RealEstateInvestmentTrustMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_DefinedBenefitPlanPlanAssetsAmountIncludingAssetsSubjectToLeveling" abstract="false" name="DefinedBenefitPlanPlanAssetsAmountIncludingAssetsSubjectToLeveling" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_ScheduleOfCommitmentsContingenciesAndGuaranteesTable" abstract="true" name="ScheduleOfCommitmentsContingenciesAndGuaranteesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_KioxiaCorporationMember" abstract="true" name="KioxiaCorporationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_FlashVenturesMember" abstract="true" name="FlashVenturesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_K1K2AndY7FacilitiesMember" abstract="true" name="K1K2AndY7FacilitiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_UnisVentureMember" abstract="true" name="UnisVentureMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_UnissoftWuxiGroupCoLtd.Member" abstract="true" name="UnissoftWuxiGroupCoLtd.Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_FutureBuildingDepreciationPaymentsMember" abstract="true" name="FutureBuildingDepreciationPaymentsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_EquityMethodInvestorNameAxis" abstract="true" name="EquityMethodInvestorNameAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_EquityMethodInvestorNameDomain" abstract="true" name="EquityMethodInvestorNameDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_WesternDigitalCorpMember" abstract="true" name="WesternDigitalCorpMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_AccountsReceivableBenchmarkMember" abstract="true" name="AccountsReceivableBenchmarkMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_NumberOfLegalEntities" abstract="false" name="NumberOfLegalEntities" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="wdc_InvestmentFundingCommitments" abstract="false" name="InvestmentFundingCommitments" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_ManufacturingCapacityPercentOperating" abstract="false" name="ManufacturingCapacityPercentOperating" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction" abstract="false" name="CostsAssociatedWithUnderutilizedCapacityAsAResultOfATemporaryAbnormalReductionInProduction" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_CostsAssociatedWithUnderutilizedCapacityAsAResultOfUnexpectedPowerOutageIncident" abstract="false" name="CostsAssociatedWithUnderutilizedCapacityAsAResultOfUnexpectedPowerOutageIncident" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_PartnersOwnershipInVentureBusiness" abstract="false" name="PartnersOwnershipInVentureBusiness" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_FlashPartnersLtdMember" abstract="true" name="FlashPartnersLtdMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_FlashAllianceLtdMember" abstract="true" name="FlashAllianceLtdMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_FlashForwardLtdMember" abstract="true" name="FlashForwardLtdMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_BalanceSheetInformationAxis" abstract="true" name="BalanceSheetInformationAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_OffBalanceSheetGuaranteeMember" abstract="true" name="OffBalanceSheetGuaranteeMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_PaymentOfPrincipalAmortizationMember" abstract="true" name="PaymentOfPrincipalAmortizationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_PurchaseOptionExercisePriceMember" abstract="true" name="PurchaseOptionExercisePriceMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_GuaranteeObligationsMaximumExposureYearOne" abstract="false" name="GuaranteeObligationsMaximumExposureYearOne" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_GuaranteeObligationsMaximumExposureYearTwo" abstract="false" name="GuaranteeObligationsMaximumExposureYearTwo" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_GuaranteeObligationsMaximumExposureYearThree" abstract="false" name="GuaranteeObligationsMaximumExposureYearThree" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_GuaranteeObligationsMaximumExposureYearFour" abstract="false" name="GuaranteeObligationsMaximumExposureYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_GuaranteeObligationsMaximumExposureYearFiveAndThereafter" abstract="false" name="GuaranteeObligationsMaximumExposureYearFiveAndThereafter" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_DecreaseInOperatingLeaseLiabilitiesAndRightOfUseAssetsDueToLeaseRemeasurement" abstract="false" name="DecreaseInOperatingLeaseLiabilitiesAndRightOfUseAssetsDueToLeaseRemeasurement" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_ThroughJanuary12039Member" abstract="true" name="ThroughJanuary12039Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_ThroughDecember2057Member" abstract="true" name="ThroughDecember2057Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_SaleLeasebackTransactionNetCashProceeds" abstract="false" name="SaleLeasebackTransactionNetCashProceeds" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_SaleLeasebackTransactionAnnualLeaseRate" abstract="false" name="SaleLeasebackTransactionAnnualLeaseRate" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_SaleLeasebackTransactionIncreasePercentage" abstract="false" name="SaleLeasebackTransactionIncreasePercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="wdc_SaleLeasebackTransactionNumberOfRenewalOptions" abstract="false" name="SaleLeasebackTransactionNumberOfRenewalOptions" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="wdc_SaleLeasebackTransactionRenewalOptionsTerm" abstract="false" name="SaleLeasebackTransactionRenewalOptionsTerm" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="wdc_TaxScenarioAxis" abstract="true" name="TaxScenarioAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_TaxScenarioDomain" abstract="true" name="TaxScenarioDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_PreTaxMember" abstract="true" name="PreTaxMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_PreTaxCatchUpMember" abstract="true" name="PreTaxCatchUpMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_A2021LongTermIncentivePlanMember" abstract="true" name="A2021LongTermIncentivePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfOfferingPeriods" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfOfferingPeriods" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardConsecutiveOfferingPeriod" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardConsecutiveOfferingPeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfPurchasePeriods" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfPurchasePeriods" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardPurchasePeriod" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:durationItemType"/>
  <xs:element id="wdc_RestrictedStockUnitsAndPerformanceStockUnitsMember" abstract="true" name="RestrictedStockUnitsAndPerformanceStockUnitsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_EmployeeStockPurchasePlanMember" abstract="true" name="EmployeeStockPurchasePlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable" abstract="true" name="EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems" abstract="true" name="EmployeeServiceSharebasedCompensationUnrecognizedServiceCostsLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="wdc_RestrictedStockUnitsAndPerformanceShareUnitsMember" abstract="true" name="RestrictedStockUnitsAndPerformanceShareUnitsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue" abstract="false" name="ShareBasedCompensationArrangementByShareBasedPaymentAwardsEquityInstrumentsOtherThanOptionsForfeitedInPeriodWeightedAverageGrantDateFairValue" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:perShareItemType"/>
  <xs:element id="wdc_AggregateValueOfRestrictedStockAwardsVested" abstract="false" name="AggregateValueOfRestrictedStockAwardsVested" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_DividendRateDateAxis" abstract="true" name="DividendRateDateAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_DividendRateDateDomain" abstract="true" name="DividendRateDateDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_January312030Member" abstract="true" name="January312030Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_January312033Member" abstract="true" name="January312033Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_TemporaryEquityPreferredStockDividendRatePercentage" abstract="false" name="TemporaryEquityPreferredStockDividendRatePercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_CumulativeDividendsUnpaidAndUndeclaredAmountIncludedInAggregateLiquidationPreference" abstract="false" name="CumulativeDividendsUnpaidAndUndeclaredAmountIncludedInAggregateLiquidationPreference" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_PreferredStockConvertibleConversionPricePercentage" abstract="false" name="PreferredStockConvertibleConversionPricePercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_PreferredStockConvertibleThresholdConsecutiveTradingDays" abstract="false" name="PreferredStockConvertibleThresholdConsecutiveTradingDays" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="wdc_PreferredStockOutstandingPotentialConvertible" abstract="false" name="PreferredStockOutstandingPotentialConvertible" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="wdc_PreferredStockRedemptionAccumulatedStatedValuePercentage" abstract="false" name="PreferredStockRedemptionAccumulatedStatedValuePercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_OutstandingAwardsAndSharesAvailableForAwardMember" abstract="true" name="OutstandingAwardsAndSharesAvailableForAwardMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_IncomeTaxDisclosureTable" abstract="true" name="IncomeTaxDisclosureTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="wdc_TaxYears2008Through2012Member" abstract="true" name="TaxYears2008Through2012Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_TaxYears2013Through2015Member" abstract="true" name="TaxYears2013Through2015Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_TaxYears2008Through2015Member" abstract="true" name="TaxYears2008Through2015Member" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_IncomeTaxDisclosureLineItems" abstract="true" name="IncomeTaxDisclosureLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="wdc_UnrecognizedTaxBenefitsIncludingAccruedInterestAndPenalties" abstract="false" name="UnrecognizedTaxBenefitsIncludingAccruedInterestAndPenalties" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments" abstract="false" name="IncomeTaxExaminationEstimateofPossibleLossResultingFromTransferPricingAdjustments" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_UnrecognizedTaxBenefitsMandatoryDeemedRepatriationLiability" abstract="false" name="UnrecognizedTaxBenefitsMandatoryDeemedRepatriationLiability" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent" abstract="false" name="EffectiveIncomeTaxRateReconciliationForeignMinimumTaxPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_EffectiveIncomeTaxRateReconciliationIRSTentativeSettlement" abstract="false" name="EffectiveIncomeTaxRateReconciliationIRSTentativeSettlement" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent" abstract="false" name="EffectiveIncomeTaxRateReconciliationUnremittedEarningsofNonU.S.EntitiesPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:percentItemType"/>
  <xs:element id="wdc_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseDomesticReturnToProvisionPercent" abstract="false" name="EffectiveIncomeTaxRateReconciliationNondeductibleExpenseDomesticReturnToProvisionPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="wdc_EffectiveIncomeTaxRateReconciliationReservesAndAccrualsPercent" abstract="false" name="EffectiveIncomeTaxRateReconciliationReservesAndAccrualsPercent" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="wdc_DomesticTaxAuthorityPre2017ActGenerationMember" abstract="true" name="DomesticTaxAuthorityPre2017ActGenerationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_TaxAuthorityMalaysiaMember" abstract="true" name="TaxAuthorityMalaysiaMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_BusinessRealignmentActivitiesMember" abstract="true" name="BusinessRealignmentActivitiesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types1:domainItemType"/>
  <xs:element id="wdc_EmployeeTerminationBenefitsAndOtherContractTerminationCosts" abstract="false" name="EmployeeTerminationBenefitsAndOtherContractTerminationCosts" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="wdc_IntellectualPropertyLitigationMember" abstract="true" name="IntellectualPropertyLitigationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_MRTechnologiesGmbHMember" abstract="true" name="MRTechnologiesGmbHMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_KimberlyE.AlexyMember" abstract="true" name="KimberlyE.AlexyMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_MatthewE.MassengillMember" abstract="true" name="MatthewE.MassengillMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="wdc_DavidGoeckelerMember" abstract="true" name="DavidGoeckelerMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
</xs:schema>
