This question already has an answer here:
I transferred 10 btc from my Coinbase acct to my wallet. The transaction appears twice in my wallet, one went right through and confirmed within minutes, the other has 0 confirmations (after 2 weeks), and the transaction ID does not show up on blockchain. So I got my bitcoins, but now I have this "phantom" unconfirmed transaction in my wallet. How do I get rid if it?