> 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/solution/murano-environment-stuck-in-deleting-status.md).

# Murano Environment Stuck in "Deleting" Status

## Problem

* A Murano environment is stuck in a "deleting" status.

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

```bash
$ openstack environment show MuranoTest -c name -c status
+------------------+----------------------------------+
| Field            | Value                            |
+------------------+----------------------------------+
| id               | 868d8d6356974db5b5e6d6588a8c527e |
| name             | MuranoTest                       |
| status           | deleting                         |
+------------------+----------------------------------+
```

{% endtab %}
{% endtabs %}

* After some time, the environment is shown to be in a "delete failure" status.

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

```bash
$ openstack environment show MuranoTest -c name -c status
+------------------+----------------------------------+
| Field            | Value                            |
+------------------+----------------------------------+
| id               | 868d8d6356974db5b5e6d6588a8c527e |
|name              | MuranoTest                       |
| status           | delete failure                   |
+------------------+----------------------------------+
```

{% endtab %}
{% endtabs %}

* The underlying Heat stack and its associated resources still exist.
* In */var/log/murano/murano-engine.log* (on the Platform9 Management Plane), the following is observed.

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

```none
DEBUG murano.engine.package_loader [-] There are no packages matching filter {'catalog': True, 'version': [u'eq:0.0.0'], 'fqn': u'io.murano.apps.generated.[PACKAGE_NAME]'} _get_definition /opt/pf9/murano/lib/python2.7/site-packages/murano/engine/package_loader.py:211...ERROR murano.common.engine NoPackageFound: Package "io.murano.apps.generated.[PACKAGE_NAME]" is not found
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - v3.8.0 and Higher
* Murano
* Heat

## Cause

The underlying package and/or the particular version of that package which was leveraged for environment creation no longer exists; the package was either deleted, or a newer version has been uploaded.

## Resolution

1. Abandon the Murano environment.

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

```bash
$ openstack environment delete --abandon [NAME/UUID]
```

{% endtab %}
{% endtabs %}

2. List all nested resources for the associated Heat stack.

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

```bash
$ openstack stack resource list -n 5 [NAME/UUID]
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Note**

The stack name typically corresponds to the name of the Murano environment. For further guidance, please reference [Identifying Heat Stack Associated with Murano Environment](https://support.platform9.com/hc/en-us/articles/360042869974).
{% endhint %}

3. Delete the Heat stack.

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

```bash
$ openstack stack delete [NAME/UUID]
```

{% endtab %}
{% endtabs %}

4. Confirm that the Heat stack was successfully deleted along with its associated resources.

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

```bash
$ openstack stack show [NAME/UUID] -c stack_status
$ openstack stack resource list -n 5 [NAME/UUID]
```

{% endtab %}
{% endtabs %}

**Example:**

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

```bash
$ openstack stack show 868d8d6356974db5b5e6d6588a8c527e -c stack_status
| stack_status | DELETE_COMPLETE
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**Note**

The resource list should return no results if all resources have successfully been deleted.
{% endhint %}

5. Confirm that the Murano environment was successfully deleted.

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

```bash
$ openstack environment show [NAME/UUID]
```

{% endtab %}
{% endtabs %}

## Additional Information

* [Platform9 - Murano Overview](https://docs.platform9.com/openstack/automation/murano/)
* [OpenStack Docs: Installing the OpenStack command-line Clients](https://docs.openstack.org/newton/user-guide/common/cli-install-openstack-command-line-clients.html)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pmo/solution/murano-environment-stuck-in-deleting-status.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
