Senator Elizabeth Warren of Massachusetts escalated her criticism of the pharmaceutical industry, announcing she would donate the campaign contributions she has received from the family of the pharmaceutical magnate Raymond Sackler, and calling on Harvard University to remove the Sackler name from all campus buildings where it appears.

Ms. Warren, who is running for the Democratic presidential nomination, made the announcement as she unveiled a plan on Wednesday to fight the opioid crisis raging in the United States. She linked the epidemic to the pharmaceutical industry and the Sackler family, which owns Purdue Pharma, the maker of OxyContin, which helped explode the country’s reliance on prescription painkillers.

In a Medium post, Ms. Warren said the opioid epidemic had been “driven by greed, pure and simple.”

“The Sacklers made their money pushing OxyContin. Pushing it even as study after study demonstrated its addictive potential,” Ms. Warren wrote. “Even as hundreds of thousands of Americans died. And how did the Sackler family react? They tried to increase their profits by opening a network of for-profit recovery centers to treat the very same health crisis they were fueling.”

A spokesman for Purdue Pharma denied Ms. Warren’s assertions, saying in a statement it was “completely false’’ that the Sacklers had ever opened or tried to open for-profit treatment centers.