W. Va. Code § 8-12-16
(a) For the purposes of this section:
(3) "Owner" or "landowner" means a person who individually or jointly with others:
(4) "Unsafe, unsanitary, dangerous, or detrimental to the public safety or welfare" means:
(e) When a code enforcement agency official enters the premises of the property for investigating or inspecting any structure, dwelling, or building, the investigation shall be performed to minimize the inconvenience to the owner or persons in possession and shall be consistent with the following:
(f) The governing body of every municipality has plenary power and authority to adopt an ordinance providing for the vacating, closing, removal, or demolition of any dwelling, structure or building by the municipality in the absence of owner agreement or court order: Provided, That the ordinance requires the code enforcement agency to provide lawful notice to and undertake reasonable efforts to seek agreement from the owner before taking any action permitted by this section and shall comply with the requirements set forth in this subsection:
(1) Any ordinance adopted under this subsection applies only to dwellings, structures, or buildings which meet the definition of unsafe, unsanitary, dangerous, or detrimental to the public safety or welfare as set forth in:
(2) Any ordinance adopted under this subsection must provide for the following:
(4) Any ordinance adopted under this subsection must also provide for notice to the owner of the owner’s right to apply to the circuit court for a temporary injunction or other similar relief restraining correction or demolition by the enforcement agency. If the application is made by the owner, a hearing shall be had within 20 days of the application, or as soon as reasonably possible.
(g)
(1) The governing body of every municipality has plenary power and authority to adopt an ordinance requiring the owner of any dwelling or building under determination of the State Fire Marshal, as provided in §29-3-12 of this code, or under order of the code enforcement agency of the municipality, to pay for the costs of repairing, altering, or improving, or of vacating and closing, removing or demolishing any dwelling or building, and may file a lien against the real property in question for an amount that reflects all costs incurred by the municipality for repairing, altering, or improving, or of vacating and closing, removing, or demolishing any dwelling or building, or structure. Any municipality that adopts an ordinance under this section may authorize the municipal court to place a structure, dwelling, or building into receivership when the following circumstances are present:
(h) Every municipality may also institute a civil action in circuit court against the landowner or other responsible party to obtain an order allowing the municipality to take corrective action up to and including demolition of any structure, dwelling or building that is unsafe, unsanitary, dangerous, or detrimental to the public safety or welfare; and to recover all reasonable costs and expenses incurred by the municipality with respect to the property and for reasonable attorney fees and court costs incurred in the prosecution of the action: