Sacred places are violated by gravely injurious actions done in them with scandal to the faithful, actions which, in the judgment of the local ordinary, are so grave and contrary to the holiness of the place that it is not permitted to carry on worship in them until the damage is repaired by a penitential rite according to the norm of the liturgical books.
Source: Code of Canon Law (Vatican.va)