# Ansible Tower - Unable To Remove Host From Inventory During A Scoped Job Template Run

**URL:** <https://forum.ansible.com/t/ansible-tower-unable-to-remove-host-from-inventory-during-a-scoped-job-template-run/29632>\
**Category:** AWX Project\
**Created:** [February 6, 2019, 3:42pm UTC](https://forum.ansible.com/t/ansible-tower-unable-to-remove-host-from-inventory-during-a-scoped-job-template-run/29632 "2019-02-06T15:42:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlturnbow1s](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mlturnbow1s](https://forum.ansible.com/u/mlturnbow1s)\
**Post date:** [February 6, 2019, 3:42pm UTC](https://forum.ansible.com/t/ansible-tower-unable-to-remove-host-from-inventory-during-a-scoped-job-template-run/29632/1 "2019-02-06T15:42:30Z")

</div>

Rundown of issue:

- I have a test inventory.
- I have a job template that has limit as prompt on launch so that I can scope to a single node/host.
- I can run the job against a single host in the test inventory by using the limit, however, while that job template is running I am unable to remove any inventory items from the test inventory.

I can verify this issue (outside of automation), by going into tower and creating a fake host entry into the inventory. Running the job template against a working host in the inventory, and then trying to remove the fake entry.

I get denied because the ‘resource is in use’. It is almost as if it is ignoring the fact that the job template run has been scoped to a single item, and is locking down the inventory.

At this time I’m hoping to find out if this is expected behavior or if it is a bug.

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [February 6, 2019, 11:35pm UTC](https://forum.ansible.com/t/ansible-tower-unable-to-remove-host-from-inventory-during-a-scoped-job-template-run/29632/2 "2019-02-06T23:35:32Z")

</div>

Great steps to recreate. Expected behavior. Awx doesn’t attempt to interpret the ansible limit

---

<div class="post-metadata">

**Author:** ![mlturnbow1s](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mlturnbow1s](https://forum.ansible.com/u/mlturnbow1s)\
**Post date:** [February 8, 2019, 2:08pm UTC](https://forum.ansible.com/t/ansible-tower-unable-to-remove-host-from-inventory-during-a-scoped-job-template-run/29632/3 "2019-02-08T14:08:40Z")

</div>

Thanks for the response. I appreciate it!
