user137283: I created a wallet with some incorrect parameters. Now I’ve added a new wallet. But I would like to rename the first wallet (to something like “wallet-test”) and give my new wallet the name I originally intended.

user133407: You can rename the wallet directory name.
Example:
If I want to change the name of wallet w1 to w-1
$ ls

anchors.dat   chainstate         indexes          peers.dat
banlist.json  debug.log          mempool.dat      settings.json
blocks        fee_estimates.dat  message_capture  wallets

$ cd wallets

$ ls

w1  w2

$ mv w1 w-1

$ ls

w-1  w2

You can restart bitcoind and confirm walletname with getwalletinfo.

137283: <p>I created a wallet with some incorrect parameters. Now I’ve added a new wallet. But I would like to rename the first wallet (to something like “wallet-test”) and give my new wallet the name I originally intended.</p>
 133407: <p>You can rename the wallet directory name.</p>
<p>Example:</p>
<p>If I want to change the name of wallet <code>w1</code> to <code>w-1</code></p>
<pre><code>$ ls

anchors.dat   chainstate         indexes          peers.dat
banlist.json  debug.log          mempool.dat      settings.json
blocks        fee_estimates.dat  message_capture  wallets

$ cd wallets

$ ls

w1  w2

$ mv w1 w-1

$ ls

w-1  w2
</code></pre>
<p>You can restart <code>bitcoind</code> and confirm walletname with <code>getwalletinfo</code>.</p>
