Depends what the excommunication is for. For instance, in the U.S., bishops have given priests the ability to remove the excommunication for abortion in confession. In other cases of excommunication it is the responsibility of the local bishop. Lastly, there are some excommunications that can only be lifted by the Apostolic See.