yǐn​jiù​cí​zhí

to resign for a mistake