Delete a specific key from the agent.
Section: ssh-agent and ssh-add
Remove one key from agent
bash
bash
ssh-add -d ~/.ssh/id_ed25519Explanation
Delete a specific key from the agent.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing ssh-agent and ssh-add
Start ssh-agent in current shell
Start an agent and export its environment variables.
List loaded keys
Show fingerprints of identities currently loaded in the agent.
List public keys in agent
Print public keys currently loaded in the agent.
Require confirmation before using a key
Load a key that prompts for confirmation on each use.