user99556: For my unit tests, I'd like to be able to delete and recreate a wallet without having to stop bitcoind and manually deleting the wallet directory.
When I try to delete such wallet directory without stopping bitcoind, I get an error since an handle exists on "db.log" (on Windows at least).
Is there a clean way to delete a (testnet) wallet without stopping bitcoind?

user48884: You can unload the wallet using unloadwallet and then delete the wallet file.

99556: <p>For my unit tests, I'd like to be able to delete and recreate a wallet without having to stop <code>bitcoind</code> and manually deleting the wallet directory.</p>

<p>When I try to delete such wallet directory without stopping <code>bitcoind</code>, I get an error since an handle exists on "<code>db.log</code>" (on Windows at least).</p>

<p>Is there a clean way to delete a (testnet) wallet without stopping <code>bitcoind</code>?</p>
 48884: <p>You can unload the wallet using <code>unloadwallet</code> and then delete the wallet file.</p>
