<p>When you use <code>importprivkey()</code> with electrum it makes you create a new wallet for the key import. You can't do it on the command line but you can delete the wallet file from your PC (assuming that new wallet you created during import only has that key on it).    </p>

<pre><code>   C:\Users\YOURNAME\AppData\Roaming\Electrum\wallets
</code></pre>

CC BY-SA 4.0
2019-12-03T19:03:20.750Z
I need to do it on the command line as I'm using electrum as a service.
Patoshi パトシ
CC BY-SA 4.0
2019-11-21T04:58:27.200Z
2019-11-21T04:58:27.200Z
m1xolyd1an
<p>I imported a few private keys into my electrum wallet via the command line. Now I want to delete these specific private keys from electrum 3.3.8 - What is the command to delete these keys from my wallet?</p>

<private-key><electrum><command-line-options><cli>
Delete a specific private key from an Electrum 3.3.8 wallet via the command line?
Patoshi パトシ
# Delete a specific private key from an Electrum 3.3.8 wallet via the command line?

(Asked by: username_0 on 2019-11-20)

I imported a few private keys into my electrum wallet via the command line. Now I want to delete these specific private keys from electrum 3.3.8 - What is the command to delete these keys from my wallet?

**Tags:** private-key, electrum, command-line-options, cli


---

## 1 answers

### Answer by username_1 on 2019-11-21. Score: 0 | Accepted answer

When you use `importprivkey()` with electrum it makes you create a new wallet for the key import. You can't do it on the command line but you can delete the wallet file from your PC (assuming that new wallet you created during import only has that key on it).

```
   C:\Users\YOURNAME\AppData\Roaming\Electrum\wallets

```

> **Comments:**
> **username_0**: I need to do it on the command line as I'm using electrum as a service.  

---

