> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/how-to/stack-deletion-fails-with-delete-failed.md).

# Stack deletion fails with 'DELETE\_FAILED'

## Problem

* When trying to delete stack, it stays in DELETE IN PROGRESS state and fails with DELETE\_FAILED:

{% tabs %}
{% tab title="Javascript" %}

```javascript
# openstack stack list  --all  | grep -i test
| d86ced7e-aaaa-4c08-854f-6cd772aa831a | test           | b8ba4cd05ecf4e47a3002622574cd815 | DELETE_FAILED   | 2022-12-06T06:27:02Z | 2022-12-07T03:56:56Z |
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - v5.4 and Higher

## Cause

* openstack-heat-engine service was not responding to delete requests.
* Heat logs shows below error:

{% tabs %}
{% tab title="Javascript" %}

```javascript
$ cat /var/log/heat/heat-api-daemon.log:

2022-12-07 06:22:49,602.602 24651 ERROR heat.engine.worker [req-5bba22e9-aaaa-4483-a0da-e749af7d2b0b - admin - default default] Failed to stop all workers of stack test-kma_server_resource_group-ahdhfnfns, stack cancel not complete
2022-12-07 06:22:49,743.743 24651 INFO heat.engine.stack [req-5bba22e9-aaaa-4483-a0da-e749af7d2b0b - admin - default default] Triggering resource 349871 for cleanup
```

{% endtab %}
{% endtabs %}

## Resolution

* Restart heat-engine service and then try to delete the stack:

{% tabs %}
{% tab title="Javascript" %}

```javascript
# systemctl restart openstack-heat-engine.service
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://platform9.com/kb/pmo/how-to/stack-deletion-fails-with-delete-failed.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
