Removing user data
Removing user data according to GDPR
You can remove the Che user’s data using the Che API. Following this procedure makes the service compliant to EU General Data Protection Regulation (GDPR) that enforces the right for individuals to have personal data erased.
-
An active session with administrative permissions to Che. See Configuring the administrative user.
-
An active
oc
session with administrative permissions to the OpenShift cluster. See Getting started with the OpenShift CLI.
-
Get the <username> user <id>
id
: navigate to https://<che-host>/swagger/#/user/find_1, click Try it out, set name: <username>, and click Execute. Scroll down the Response body to find theid
value. -
Remove the <id> user data that Che server manages, such as user preferences: navigate to https://<che-host>/swagger/#/user/remove, click Try it out, set id: <id>, and click Execute. Expect a
204
response code: -
Delete the user namespace to remove all Kubernetes resources bound to the user, such as workspaces, secrets, and configmaps.
$ kubectl delete namespace <username>-che
-
Configuring a user namespace name for automatic provisioning.
-
To remove the data of all users, see Uninstalling Che.