W. Va. Code § 62-2-3
When costs assessed against prosecutor
Text of § 62-2-3
If any proceeding for an offense, had or moved at the instance of a prosecutor, be dismissed, or the accused discharged from the accusation, the court or justice before whom the proceeding is may give judgment against the prosecutor in favor of the accused for his costs.
Cite this section
W. Va. Code § 62-2-3
https://lawconsensus.com/codes/west-virginia/chapter-62/62-2-3/
LawCensus reproduces the text of the law for reference. It may not show the most recent changes. Check the official source before you rely on it: official text. This is general information, not legal advice.