# docker\_purge with several labels in filter

**URL:** <https://forum.ansible.com/t/docker-purge-with-several-labels-in-filter/38700>\
**Category:** Ansible Project\
**Created:** [February 27, 2024, 9:19am UTC](https://forum.ansible.com/t/docker-purge-with-several-labels-in-filter/38700 "2024-02-27T09:19:14Z")\
**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:19am UTC](https://forum.ansible.com/t/docker-purge-with-several-labels-in-filter/38700/1 "2024-02-27T09:19:14Z")

</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 ?

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
