PALO ALTO — LinkedIn Corp. announced Thursday that longtime general counsel Erika Rottenberg will leave the company in August. In a statement, Rottenberg, 51, said she has “decided to take some time off from the day-to-day work that is required from a general counsel” after six years in that role at LinkedIn and 21 years in the legal profession.

“Our company feels tremendous gratitude to her for her fantastic insights and smart counsel,” LinkedIn’s CEO Jeff Weiner said in a statement. “We wish her the very best as she pursues her ‘next play.’”