# How to use docker\_purge with several labels in filter?

**URL:** <https://forum.ansible.com/t/how-to-use-docker-purge-with-several-labels-in-filter/4079>\
**Category:** Get Help\
**Created:** [February 27, 2024, 9:11am UTC](https://forum.ansible.com/t/how-to-use-docker-purge-with-several-labels-in-filter/4079 "2024-02-27T09:11:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigfootspi](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@bigfootspi](https://forum.ansible.com/u/bigfootspi)\
**Post date:** [February 27, 2024, 9:11am UTC](https://forum.ansible.com/t/how-to-use-docker-purge-with-several-labels-in-filter/4079/1 "2024-02-27T09:11:25Z")

</div>

Hello everybody.

I am trying to launch a container purge command by filtering on several labels in my container.

my command does not work.

filters seem poorly formatted

have you an idea ?

```auto
  docker_prune:
    containers: yes
    images: yes
    debug: true
    containers_filters:
      label: [
        "module.tri={{ trigramme_module }}",
        "module.env={{ environnement }}",
        "application.part={{ part | default( trigramme_module ) }}"
      ]
    images_filters:
      dangling: false

```
