(CNN) Katharine Gorka is leaving her post as press secretary for US Customs and Border Protection after only two months on the job.

She confirmed to CNN Tuesday that she is resigning and will leave the agency at the end of the week. The Washington Post first reported Gorka's departure.

"I have served the administration for almost three years. I've decided it's time to spend more time with my family," she said, adding that it was "100%" her choice to leave the position.

During her tenure at CBP, the agency was in the spotlight for severe overcrowding at its border facilities, as well as reports of lewd and demeaning social media postings by former and current agents.

Gorka's departure is the latest in a string of high-profile turnovers at the Department of Homeland Security, which has left the department with an acting secretary since April, as well as all three immigration-focused agencies with acting chiefs.

Read More