beg off

Upper Intermediate (B2) formal

To politely ask to be let off from doing something you were supposed to do.

"He had planned to attend the conference but had to beg off at the last moment due to a family emergency."