# How do I attach/detach a volume to an instance?

### a. How do I attach a volume to an instance?

Follow the steps below to learn how to attach a volume:

**Step 1:** [Login](https://customer.acecloudhosting.com/index.php?m=ace_product_register_addon\&action=login) to your account.

**Step 2:** Navigate to **Compute** and then click on **Instances**.

<figure><img src="/files/b6pxLgUD1iLSuz7lttQs" alt=""><figcaption></figcaption></figure>

**Step 3:** Click on the **drop-down** against the instance for which you want to attach a volume.

<figure><img src="/files/R3Z1hfnJMMb4kzX5yBck" alt=""><figcaption></figcaption></figure>

**Step 4:** Choose **Attach Volume** from the drop-down menu.

<figure><img src="/files/QsRYHxQ9dqPFkApFhxUb" alt=""><figcaption></figcaption></figure>

**Step 5:** Choose a volume from the drop-down and hit **Submit**.

<figure><img src="/files/oHSN10dTEEtGNASsZVxy" alt=""><figcaption></figcaption></figure>

***Note:** Select the checkbox if you want to delete the volume when the instance is terminated.*

### b. How do I detach a volume from an instance?

Follow the steps below to learn how to detach a volume:

**Step 1:** Click on **Select** against the instance for which you want to detach a volume.

<figure><img src="/files/VyZDX1DSzN3gbtdkO81D" alt=""><figcaption></figcaption></figure>

**Step 2:** Choose **Detach Volume** from the drop-down menu.

<figure><img src="/files/Dwyx2QqXUhmEpauqQT0N" alt=""><figcaption></figcaption></figure>

**Step 3:** Choose a volume from the drop-down that you want to remove and hit **Submit**.

<figure><img src="/files/0f0wRMnQ7YALXHenVsVS" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://docs.acecloud.ai/knowledge-base/compute/how-do-i-attach-detach-a-volume-to-an-instance.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.
