# Uninstall not needed collections when using ansible-builder

**URL:** <https://forum.ansible.com/t/uninstall-not-needed-collections-when-using-ansible-builder/7568>\
**Category:** Get Help\
**Tags:** awx, collections, ansible-builder, ee\
**Created:** [July 31, 2024, 3:18pm UTC](https://forum.ansible.com/t/uninstall-not-needed-collections-when-using-ansible-builder/7568 "2024-07-31T15:18:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [July 31, 2024, 4:41pm UTC](https://forum.ansible.com/t/uninstall-not-needed-collections-when-using-ansible-builder/7568/2 "2024-07-31T16:41:12Z")

</div>

If you want to only have the collections you prefer in your image, then you should either use a proper base image (fedora/centos/ubi, I think ansible-builder recently added support for other distros as well, you just have to define the package manager commands); or you could use the [community-minimal-ee](http://forum.ansible.com/t/release-announcement-ansible-community-execution-environment-base-and-minimal-2-17-2-1/7355) which contains only 3 `ansible.*` collections.

You should also consider using multiple EE’s. The AWX-EE has _everything it needs_ for AWX to function. This should be the control plane’s EE (i.e. `control_plane_ee_image`). Your custom EE’s can be added as extra execution environments and you can set them as the default EE for your Org, while still allowing the AWX itself to use its own EE.

---

_[View the full topic](https://forum.ansible.com/t/uninstall-not-needed-collections-when-using-ansible-builder/7568)._
