SAN FRANCISCO — Richard DeVaul, a director at the X unit of Google’s parent company, Alphabet, resigned from the company on Tuesday after he was accused in a New York Times article published last week of sexually harassing a female job applicant.

Star Simpson, a hardware engineer, said that in 2013, Mr. DeVaul made unwanted advances to her at his encampment at Burning Man, an annual festival in the Nevada desert. It was a week after she interviewed at Google for a job reporting to him.

When Ms. Simpson reported his behavior to Google two years later, a company official told her that her story was “more likely than not” true and that appropriate action had been taken against Mr. DeVaul without explaining what the company had done.

After the article was published, many employees expressed anger and disappointment that Mr. DeVaul was still employed at the company despite Ms. Simpson’s harassment claim.