Sacraments administered by "defrocked" Catholic deacons, priests and bishops remain valid because upon ordination such priests remain priests for ever in the order of Melchizedek. However, It would be illicit. A priest who has been laicized or suspended or excommunicated is not to say Mass, but their Masses are still considered valid.
Peace be to you
Well, we are all priests of the order of Melchizedeck, by the ordination pronounced by Christ upon us all collectively. So, by that reasoning, I could administer the sacraments. Yet I don’t see that attitude reflected in the Catholic catechism.