§1. An altar loses its dedication or blessing according to the norm of can. 1212.
§2. Altars, whether fixed or movable, do not lose their dedication or blessing if the church or other sacred place is relegated to profane uses.
Source: Code of Canon Law (Vatican.va)