# Inventory Pending Delete (AWX 9.3.0)

**URL:** <https://forum.ansible.com/t/inventory-pending-delete-awx-9-3-0/35279>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 3, 2021, 11:19pm UTC](https://forum.ansible.com/t/inventory-pending-delete-awx-9-3-0/35279 "2021-06-03T23:19:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Susan\_Tang](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@Susan\_Tang](https://forum.ansible.com/u/Susan_Tang)\
**Post date:** [June 3, 2021, 11:19pm UTC](https://forum.ansible.com/t/inventory-pending-delete-awx-9-3-0/35279/1 "2021-06-03T23:19:57Z")

</div>

Hi all,

We’re on an older version of AWX at this point (9.3.0), an upgrade is planned but not an immediate priority.

I’ve been trying to delete an inventory where single hosts fail to delete (timing out when pressing delete button, or 504 from API calls). The inventory is now stuck in a “Pending delete” state and has been for about an hour. I know the process can take a while, but I don’t see any indications from database queries or background tasks on the AWX task container that anything is actually happening.

I’ve tried using Shell Plus to break out of the pending state and retrying the delete, unfortunately it still seems to be stuck.

Is there any way to confirm that the deletion is actually happening? Or a more surefire way to delete the inventory from this state?

Thanks,  
Susan Tang

---

<div class="post-metadata">

**Author:** ![Susan\_Tang](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@Susan\_Tang](https://forum.ansible.com/u/Susan_Tang)\
**Post date:** [June 4, 2021, 2:12am UTC](https://forum.ansible.com/t/inventory-pending-delete-awx-9-3-0/35279/2 "2021-06-04T02:12:13Z")

</div>

Wanted to update this thread, I let the delete\_inventory run for a couple hours, but the inventory was still hanging around as “Pending delete” in the UI. I gave the shell\_plus command another try after this length of time, it ran for about 2 minutes and then the inventory was deleted successfully from the UI.

---

<div class="post-metadata">

**Author:** ![Susan\_Tang](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@Susan\_Tang](https://forum.ansible.com/u/Susan_Tang)\
**Post date:** [June 4, 2021, 2:12am UTC](https://forum.ansible.com/t/inventory-pending-delete-awx-9-3-0/35279/3 "2021-06-04T02:12:48Z")

</div>

The shell\_plus command for those who stumble on this thread:  
Inventory.objects.filter(pending\_deletion=True).update(pending\_deletion=False)
