# Docker-compose down doesn't remove images

**URL:** <https://forums.docker.com/t/docker-compose-down-doesnt-remove-images/22778>\
**Category:** Docker Desktop\
**Created:** [September 30, 2016, 5:18am UTC](https://forums.docker.com/t/docker-compose-down-doesnt-remove-images/22778 "2016-09-30T05:18:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rprakashg](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rprakashg](https://forums.docker.com/u/rprakashg)\
**Post date:** [September 30, 2016, 5:18am UTC](https://forums.docker.com/t/docker-compose-down-doesnt-remove-images/22778/1 "2016-09-30T05:18:53Z")

</div>

I’m finding that docker-compose down only kills running containers and removes running containers but leaves images. Per documentation container images are supposed to be removed as well. Is this a known issue?

---

<div class="post-metadata">

**Author:** ![aleveille](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/aleveille/32/9905_2.png) [@aleveille](https://forums.docker.com/u/aleveille)\
**Post date:** [October 4, 2016, 1:07pm UTC](https://forums.docker.com/t/docker-compose-down-doesnt-remove-images/22778/2 "2016-10-04T13:07:35Z")

</div>

Hi,

As [per documentation](https://docs.docker.com/compose/reference/down/):

```
By default, the only things removed are:

• Containers for services defined in the Compose file
• Networks defined in the networks section of the Compose file
• The default network, if one is used

```

If you want to remove image, use the `--rmi 'all'` flag

Hope this helps.

---

<div class="post-metadata">

**Author:** ![rprakashg](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@rprakashg](https://forums.docker.com/u/rprakashg)\
**Post date:** [October 4, 2016, 3:09pm UTC](https://forums.docker.com/t/docker-compose-down-doesnt-remove-images/22778/3 "2016-10-04T15:09:35Z")

</div>

Oops thanks not sure how i missed that 🙂 Cheers
