Article 576. hen the owner of a building, which is supported by a party-wall, desires to demolish it, he may also renounce the part-ownership but he shall also pay for all repairs and works required for preventing, only on such occasion, damages which the demolition may cause to the party-wall.