<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0202</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2008-04-24</periodOfReport>

    <issuer>
        <issuerCik>0001072342</issuerCik>
        <issuerName>DELPHI CORP</issuerName>
        <issuerTradingSymbol>DPH</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001189331</rptOwnerCik>
            <rptOwnerName>SHEEHAN JOHN D</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>DELPHI CORPORATION</rptOwnerStreet1>
            <rptOwnerStreet2>5725 DELPHI DRIVE</rptOwnerStreet2>
            <rptOwnerCity>TROY</rptOwnerCity>
            <rptOwnerState>MI</rptOwnerState>
            <rptOwnerZipCode>48098-2815</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>VP Chief Restructuring Officer</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2008-04-24</value>
            </transactionDate>
            <deemedExecutionDate>
                <value>2008-04-24</value>
            </deemedExecutionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>F</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>663</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>.11</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>27172</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value></value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>104</value>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>In Trust</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">Includes shares of restricted stock, which earn dividend equivalents in the form of additional shares as and when dividends are paid on the Issuer's common stock and which are subject to vesting over time and forfeiture, upon the occurence of certain events.  On April 24, 2008, the Issuer distributed shares in respect of previously granted awards that vested on April 24, 2008 and the reporting person had shares withheld to pay withholding taxes.  Total holdings include shares of restricted stock acquired as a result of all previously reported awards, dividend equivalents earned through the date of this report on such prior awards, and direct holdings of Common Stock which are not restricted shares.</footnote>
        <footnote id="F2">Of the total, 44 shares are owned by the reporting person's spouse and 20 shares are held by each of the reporting person's three minor children.  The reporting person disclaims beneficial ownership of these securities.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>/s/ Marjorie Harris Loeb                                           John Sheehan, By:  Marjorie Harris Loeb, pursuant to Power of Attorney</signatureName>
        <signatureDate>2008-04-25</signatureDate>
    </ownerSignature>
</ownershipDocument>
