What action with local authorities generally take with regard to dangerous buildings?

Should a local authority encounter a dangerous building, it has the legal right to approach the magistrates’ court. The court will usually rule that the local authority has the legal right to complete the outstanding work itself, or demolish the structure, or the offending part of it.