Delete a Docker context.
Section: Contexts and Trust
Remove a context
bash
bash
docker context rm prodExplanation
Cleans up no-longer-used targets from your local client.
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 Contexts and Trust