Any court in which is pending an action wherein for more than one year there has been no order or proceeding, or wherein the plaintiff is delinquent in the payment of accrued court costs, may, in its discretion, order such action to be struck from its docket; and it shall thereby be discontinued. The court may direct that such order be published in such newspaper as the court may name. The court may, on motion, reinstate on its trial docket any action dismissed under this rule, and set aside any nonsuit that may [be] entered by reason of the nonappearance of the plaintiff, within three terms after entry of the order of dismissal or nonsuit; but an order of reinstatement shall not be entered until the accrued costs are paid.
Before a court may dismiss an action under Rule 41(b), notice and an opportunity to be heard must be given to all parties of record.
W.Va. R. Civ. P. 41