Skip to content

Commit abaf17b

Browse files
authored
Merge pull request #70152 from jneczypor/OSDOCS-8384
OSDOCS-8384: Migrate "Getting Started with Rosa - Delete the Cluster"
2 parents 222aac4 + 42c5a34 commit abaf17b

File tree

4 files changed

+93
-0
lines changed

4 files changed

+93
-0
lines changed

_topic_maps/_topic_map_rosa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ Topics:
153153
File: cloud-experts-getting-started-autoscaling
154154
- Name: Upgrading your cluster
155155
File: cloud-experts-getting-started-upgrading
156+
- Name: Deleting your cluster
157+
File: cloud-experts-getting-started-deleting
156158
- Name: Deploying an application
157159
Dir: cloud-experts-deploying-application
158160
Distros: openshift-rosa
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
[id="cloud-experts-getting-started-deleting"]
3+
= Tutorial: Deleting your cluster
4+
include::_attributes/attributes-openshift-dedicated.adoc[]
5+
:context: cloud-experts-getting-started-deleting
6+
7+
toc::[]
8+
9+
//rosaworkshop.io content metadata
10+
//Brought into ROSA product docs 2024-01-11
11+
12+
You can delete your {product-title} (ROSA) cluster using either the command line interface (CLI) or the user interface (UI).
13+
14+
== Deleting a ROSA cluster using the CLI
15+
16+
. *Optional:* List your clusters to make sure you are deleting the correct one by running the following command:
17+
+
18+
[source,terminal]
19+
----
20+
$ rosa list clusters
21+
----
22+
23+
. Delete a cluster by running the following command:
24+
+
25+
[source,terminal]
26+
----
27+
$ rosa delete cluster --cluster <cluster-name>
28+
----
29+
+
30+
[WARNING]
31+
====
32+
This command is non-recoverable.
33+
====
34+
35+
. The CLI prompts you to confirm that you want to delete the cluster. Press *y* and then *Enter*. The cluster and all its associated infrastructure will be deleted.
36+
+
37+
[NOTE]
38+
====
39+
All AWS STS and IAM roles and policies will remain and must be deleted manually once the cluster deletion is complete by following the steps below.
40+
====
41+
42+
. The CLI outputs the commands to delete the OpenID Connect (OIDC) provider and Operator IAM roles resources that were created. Wait until the cluster finishes deleting before deleting these resources. Perform a quick status check by running the following command:
43+
+
44+
[source,terminal]
45+
----
46+
$ rosa list clusters
47+
----
48+
49+
. Once the cluster is deleted, delete the OIDC provider by running the following command:
50+
+
51+
[source,terminal]
52+
----
53+
$ rosa delete oidc-provider -c <clusterID> --mode auto --yes
54+
----
55+
56+
. Delete the Operator IAM roles by running the following command:
57+
+
58+
[source,terminal]
59+
----
60+
$ rosa delete operator-roles -c <clusterID> --mode auto --yes
61+
----
62+
+
63+
[NOTE]
64+
====
65+
This command requires the cluster ID and not the cluster name.
66+
====
67+
68+
. Only remove the remaining account roles if they are no longer needed by other clusters in the same account. If you want to create other ROSA clusters in this account, do not perform this step.
69+
+
70+
To delete the account roles, you need to know the prefix used when creating them. The default is "ManagedOpenShift" unless you specified otherwise.
71+
+
72+
Delete the account roles by running the following command:
73+
+
74+
[source,terminal]
75+
----
76+
$ rosa delete account-roles --prefix <prefix> --mode auto --yes
77+
----
78+
79+
== Deleting a ROSA cluster using the UI
80+
81+
. Log in to the Red Hat OpenShift Cluster Manager, and locate the cluster you want to delete.
82+
83+
. Click the three dots to the right of the cluster.
84+
+
85+
image::cloud-experts-getting-started-deleting1.png[]
86+
87+
. In the dropdown menu, click *Delete cluster*.
88+
+
89+
image::cloud-experts-getting-started-deleting2.png[]
90+
91+
. Enter the name of the cluster to confirm deletion, and click *Delete*.
84.6 KB
Loading
115 KB
Loading

0 commit comments

Comments
 (0)