Deleting a desktop
-
In the management console
, select the folder containing the desktop. -
From the list of services, select 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 specified when creating the CLI profile is used by default. 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 the --folder-name
or --folder-id
parameter.
-
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 list
Result:
+----------------------+------------------+--------+----------------------+---------------------+ | 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
ID
orNAME
, 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.