Look at target player's hand and choose any of those cards other than a basic land. Search that player's graveyard, hand, and library for all copies of the chosen card and remove them from the game. That player shuffles his or her library afterwards.