> For the complete documentation index, see [llms.txt](https://docs.acecloud.ai/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acecloud.ai/knowledge-base/compute/how-do-i-attach-detach-a-volume-to-an-instance.md).

# 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>
