# How to Remove a Docker Image?

To remove one or more specific images, you can use the `docker rmi` command.

## How to list all images

If you want to list all the images before removing any, you can do they by running the following command:

```bash
docker images -a
```

## Remove one or more images

If you want to remove an image by name or id, you can do that by running the following command:

```bash
docker rmi <image>
```

If you want to remove more images at the same time, just pass all the image names or ids to the command:

```bash
docker rmi <image-1> <image-2> <image-3>
```

## Remove all images

To remove all docker images, run the following command:

```bash
docker rmi $(docker images -a -q)
```
