Introduction
This is another article where the main focus is about docker volume. There is already an article exist about how to list a docker volume in ‘How to List Docker Volume in Microsoft Windows‘. Furthermore, there is also another article exist about how to add a docker volume in ‘How to Create Docker Volume in Microsoft Windows‘. As also exist in those two articles, there is a need for preparing before deleting the docker volume will be possible. Below is the preparation of it :
-
In the first place, it is managing to have an installation of a Docker Desktop. Check in ‘How to Install Docker Desktop in Microsoft Windows‘ or in ‘How to Update Docker Desktop in Microsoft Windows‘ for updating the installation.
-
Next step, just make sure that Docker Desktop service is running. It is for executing the docker command. Just look in ‘How to Execute Docker Command in Microsoft Windows‘ for a reference.
-
As soon as the Docker Desktop exist and running, all of the preparation is already done.
How to Delete Docker Volume in Microsoft Windows
This is a part where the execution for deleting the docker volume exist. After the preparation in the above part, just perform the following sequence in order to delete docker volume :
-
As the first step, just run the command line interface. In case of using device running on Microsoft Windows, there will be a Command Prompt tool as the media to run it. Below is the appearance of the Command Prompt tool :
Microsoft Windows [Version 10.0.22000.1335] (c) Microsoft Corporation. All rights reserved. C:\Users\Personal>
-
In the Command Prompt, just execute the following command to list available docker volume as in ‘How to List Docker Volume in Microsoft Windows‘ :
C:\Users\Personal>docker volume ls DRIVER VOLUME NAME local myvolume C:\Users\Personal>
-
Next, after successfully listing all available docker volume, choose the one for further delete execution. In this case, since there is only one volume, just choose that one for the delete target by executing the command below :
C:\Users\Personal>docker volume rm myvolume myvolume C:\Users\Personal>
-
Finally, check the volume once more just to make sure that the selected volume has been deleted by typing the same command for listing docker volume as follows :
C:\Users\Personal>docker volume ls DRIVER VOLUME NAME C:\Users\Personal>