U.S. prosecutors have withdrawn a subpoena seeking the identities of thousands of people who bought used books through online retailer Amazon.com Inc., newly unsealed court records show.

The withdrawal came after a judge ruled the customers have a right to keep their reading habits from the government.