SANTIAGO, Chile — Pope Francis has accepted the resignation of the auxiliary bishop of Santiago just 24 days after the pontiff appointed him to the post, and weeks after the bishop made comments about the lack of women at the Last Supper.

The pope appointed the bishop, Carlos Eugenio Irarrázabal, in an effort to rebuild the Roman Catholic Church’s credibility after a pervasive sexual abuse scandal that exposed hundreds of allegations now being investigated by Chilean criminal prosecutors.

More than 30 Chilean bishops offered their resignations in 2018 after a report ordered by Francis detailed a culture of abuse and cover-ups in Chile’s church. The 2,300-page document accused church leaders of failing to investigate credible allegations — even destroying documents to conceal them — and transferring priests accused of abuses to other parishes.

The Archdiocese of Santiago did not specify the reasons for Bishop Irarrázabal’s departure, but said on Friday that the pope had accepted his resignation “in favor of unity and for the good of the church.” The bishop could not be reached for comment.