# Unable to remove objects in sequence from AAP using controller\_configuration.dispatch role

**URL:** <https://forum.ansible.com/t/unable-to-remove-objects-in-sequence-from-aap-using-controller-configuration-dispatch-role/7475>\
**Category:** Get Help\
**Tags:** infra-config-as-code\
**Created:** [July 25, 2024, 10:38am UTC](https://forum.ansible.com/t/unable-to-remove-objects-in-sequence-from-aap-using-controller-configuration-dispatch-role/7475 "2024-07-25T10:38:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![umang](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/umang/32/4304_2.png) [@umang](https://forum.ansible.com/u/umang)\
**Post date:** [July 25, 2024, 10:38am UTC](https://forum.ansible.com/t/unable-to-remove-objects-in-sequence-from-aap-using-controller-configuration-dispatch-role/7475/1 "2024-07-25T10:38:51Z")

</div>

Hi ,  
I have provisioned resources using controller\_configuration.dispatch role . However I am looking to delete these resources as well after reading same state file defined in common fixture . Dispatch role follow the same order as it uses to provision resource. Role for cleaning up resources is failing because it first delete inventory thereafter it goes to delete host from same inventory then it fails. Is it not possible to use dispatch role for provisioning and removing resources by reading same set of state file?
