> 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/instance-task-state-stuck-in-deleting.md).

# Instance Task State Stuck in Deleting

## Problem

* An instance is unable be deleted (potentially with one or more volumes attached).
* The server details show that the `OS-EXT-STS:task_state` field is stuck in a `deleting` state.

## Environment

* Platform9 Managed OpenStack - All Versions
* Nova
* Cinder

## Cause

The `pf9-ostackhost` (nova-compute) service may be unresponsive and/or a previous operation failed for the instance (e.g. volume detach).

## Resolution

1. Restart the `pf9-ostackhost` service (which will reset the task state for any pending instances).

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

```bash
systemctl restart pf9-ostackhost
```

{% 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:

```
GET https://platform9.com/kb/pmo/solution/instance-task-state-stuck-in-deleting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
