Skip to content

Commit

Permalink
Tip for project deletion (#28)
Browse files Browse the repository at this point in the history
* Add tip regarding project deletion

A datascience project can be deleted without first deleting all its
namespaced resources

* Add instructions for deleting the project via UI
  • Loading branch information
jramcast authored Dec 12, 2023
1 parent 28ca188 commit 0af3f15
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions modules/chapter2/pages/resources.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@ https://docs.openshift.com/container-platform/4.14/nodes/clusters/nodes-cluster-

Over time, projects may become abandoned as users leave your organization or move onto other initiatives. Old projects may need to be cleaned up and removed from the cluster in order to free up those resources.

To completely remove a project from OpenShift, you must first delete all of the resources from that project before you will be able to delete the project.

The following `oc` commands can be used to help cleanup OpenShift AI related resources prior to deleting the project:

```sh
Expand All @@ -293,3 +291,13 @@ oc delete pvc,configmaps,secrets,rolebindings,roles --all
# delete the project
oc delete project my-project
```

Similarly, you can use the RHOAI dashboard to delete a data science project.
In the btn:[Data Science Projects] section, locate the project to be deleted, click btn:[⋮] and then click btn:[Delete project].

[TIP]
====
There is no need to manually delete all the resources in a data science project before deleting the project.
When you delete a data science project, the finalizer deletes all namespaced resources in this project, including notebooks, model servers, PVCs, configuration maps, secrets, and other common project-scoped objects.
====

0 comments on commit 0af3f15

Please sign in to comment.