Virginia lets localities inspect existing buildings and order code violations corrected. If a code official declares a building unsafe, the official can order repairs or demolition, authorize emergency repairs when there is imminent danger, and demolish a building if an owner ignores a demolition order.
Virginia also lets a locality adopt an ordinance requiring an owner to remove, repair, or secure a building that endangers public health or safety. Where that rule applies, the locality can usually arrange the work after at least 30 days' notice; serious hazards and emergencies can mean a shorter timeline. The cost is charged to the owner, and if it is unpaid it becomes a lien that ranks with unpaid local real estate taxes.
An existing notice, order, deadline, lien, or local requirement still needs to be considered as part of the sale. An as-is agreement does not erase it. Share the notice and any related court papers so the buyer and settlement agent can work through the repairs, deadlines, and closing requirements.
When you sell to us, we're the buyer, so the repairs become our job.
That does not automatically end an existing order or court case or cancel a statutory deadline or an obligation before closing.
Virginia law and building-code references