Deleting a desktop
-
In the management console
, select the folder containing the desktop. -
Go to Cloud Desktop.
-
In the left-hand panel, select
Desktops. -
Click
next to the desktop you want to delete, then select Delete.Tip
To delete multiple desktops, select them in the list and click Delete at the bottom of the screen.
-
Confirm the deletion.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating 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.
-
See the description of the CLI command for deleting a desktop:
yc desktops desktop delete --help -
Get a list of desktops in the default folder:
yc desktops desktop listResult:
+----------------------+------------------+--------+----------------------+---------------------+ | ID | NAME | STATUS | DESKTOP GROUP ID | CREATED (UTC-0) | +----------------------+------------------+--------+----------------------+---------------------+ | e3vmvhgbgac4******** | my-cloud-desktop | ACTIVE | e3v1rbln45tl******** | 2024-10-09 22:42:28 | | e3vio1bc5ppz******** | reserved-desktop | ACTIVE | e3v1rbln45tl******** | 2024-10-09 21:35:17 | +----------------------+------------------+--------+----------------------+---------------------+ -
Select the desktop
IDorNAME, e.g.,my-cloud-desktop. -
Delete the desktop:
yc desktops desktop delete <desktop_name_or_ID>
Use the delete REST API method for the Desktop resource or the DesktopService/Delete gRPC API call.