Sacred places lose their dedication or blessing if they have been destroyed in large part, or have been turned over permanently to profane use by decree of the competent ordinary or in fact.
CIC
Continuous reading
The ecclesiastical authority freely exercises its powers and functions in sacred places.
By the term church is understood a sacred building designated for divine worship to which the faithful have the right of entry for the exercise, especially the public exercise, of divine worship.
§1. No church is to be built without the express written consent of the diocesan bishop.
§2. The diocesan bishop is not to give consent unless, after having heard the presbyteral council and the rectors of the neighboring churches, he judges that the new church can serve the good of souls and that the means necessary for building the church and for divine worship will not be lacking.
§3. Although religious institutes have received from the diocesan bishop consent to establish a new house in the diocese or the city, they must also obtain his permission before building a church in a certain and determined place.
In the building and repair of churches, the principles and norms of the liturgy and of sacred art are to be observed, after the advice of experts has been taken into account.
§1. After construction has been completed properly, a new church is to be dedicated or at least blessed as soon as possible; the laws of the sacred liturgy are to be observed.
§2. Churches, especially cathedrals and parish churches, are to be dedicated by the solemn rite.
Each church is to have its own title which cannot be changed after the church has been dedicated.
In a church that has legitimately been dedicated or blessed, all acts of divine worship can be performed, without prejudice to parochial rights.
§1. All those responsible are to take care that in churches such cleanliness and beauty are preserved as befit a house of God and that whatever is inappropriate to the holiness of the place is excluded.
§2. Ordinary care for preservation and fitting means of security are to be used to protect sacred and precious goods.
Entry to a church is to be free and gratuitous during the time of sacred celebrations.
§1. If a church cannot be used in any way for divine worship and there is no possibility of repairing it, the diocesan bishop can relegate it to profane but not sordid use.
§2. Where other grave causes suggest that a church no longer be used for divine worship, the diocesan bishop, after having heard the presbyteral council, can relegate it to profane but not sordid use, with the consent of those who legitimately claim rights for themselves in the church and provided that the good of souls suVers no detriment thereby.
By the term oratory is understood a place for divine worship designated by permission of the ordinary for the benefit of some community or group of the faithful who gather in it and to which other members of the faithful can also come with the consent of the competent superior.
§1. The ordinary is not to grant the permission required to establish an oratory unless he has first visited the place destined for the oratory personally or through another and has found it properly prepared.
§2. After permission has been given, however, an oratory cannot be converted to profane use without the authority of the same ordinary.
All sacred celebrations can be performed in legitimately established oratories except those which the law or a prescript of the local ordinary excludes or the liturgical norms prohibit.
By the term private chapel is understood a place for divine worship designated by permission of the local ordinary for the benefit of one or more physical persons.
Bishops can establish a private chapel for themselves which possesses the same rights as an oratory.
Without prejudice to the prescript of can. 1227, the permission of the local ordinary is required for Mass or other sacred celebrations to take place in any private chapel.
It is fitting for oratories and private chapels to be blessed according to the rite prescribed in the liturgical books. They must, however, be reserved for divine worship alone and free from all domestic uses.
By the term shrine is understood a church or other sacred place to which numerous members of the faithful make pilgrimage for a special reason of piety, with the approval of the local ordinary.
For a shrine to be called a national shrine, the conference of bishops must give its approval; for it to be called an international shrine, the approval of the Holy See is required.