[Yandex Cloud documentation](../../../index.md) > [Yandex Compute Cloud](../../index.md) > [Step-by-step guides](../index.md) > Managing a disk > Moving a disk to a different folder

# Moving a disk to a different folder

When you create a disk, it is placed in the current folder.

In Yandex Cloud, you can move a disk to a different folder within a single cloud.

Learn more about the Yandex Cloud resource hierarchy [here](../../../resource-manager/concepts/resources-hierarchy.md).

## Limitations {#limits}

When moving a disk, keep in mind the following limitations:

* [Yandex Monitoring](../../../monitoring/index.md) does not support metric relocation: existing metrics remain in the source folder, and new ones will be created in the destination folder.
* You can only move disks within a single cloud.

## Moving a disk {#change-folder}

To change the disk folder:

{% list tabs group=instructions %}

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).
  
  The folder used by default is the one specified when [creating](../../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. Get a list of all disks in the default folder:

      ```bash
      yc compute disk list
      ```

      Result:

      ```bash
      +----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+
      |          ID          |     NAME     |    SIZE     |     ZONE      | STATUS |     INSTANCE IDS     |       DESCRIPTION       |
      +----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+
      | a7lqgbt0bb9s******** | first-disk   | 20401094656 | ru-central1-a | READY  | a7lcvu28njbh******** |                         |
      | a7lv5j5hm1p1******** | second-disk  | 21474836480 | ru-central1-a | READY  |                      |                         |
      +----------------------+--------------+-------------+---------------+--------+----------------------+-------------------------+
      ```

  1. Get a list of all folders in the default cloud:

      ```bash
      yc resource-manager folder list
      ```

      Result:

      ```bash
      +----------------------+--------------------+------------------+--------+
      |          ID          |        NAME        |      LABELS      | STATUS |
      +----------------------+--------------------+------------------+--------+
      | b1gd129pp9ha******** | my-folder          |                  | ACTIVE |
      | b1g66mft1vop******** | default            |                  | ACTIVE |
      +----------------------+--------------------+------------------+--------+
      ```

  1. See the description of the CLI command for moving a disk:

      ```bash
      yc compute disk move --help
      ```

  1. Move the disk to a different folder with the following parameters:

      ```bash
      yc compute disk move \
        --id a7lqgbt0bb9s******** \
        --destination-folder-id b1gd129pp9ha********
      ```

      Where:

      * `--id`: Disk ID, e.g., `a7lqgbt0bb9s********`.
      * `--destination-folder-id`: Destination folder ID, e.g., `b1gd129pp9ha********`.

      For more information about the `yc compute disk move` command, see the [CLI reference](../../../cli/cli-ref/compute/cli-ref/disk/move.md).

- API {#api}

  Use the [move](../../api-ref/Disk/move.md) REST API method for the [Disk](../../api-ref/Disk/index.md) resource or the [DiskService/Move](../../api-ref/grpc/Disk/move.md) gRPC API call.

{% endlist %}