From c393f37e4ff923e530f5c9d234330c8f7218a117 Mon Sep 17 00:00:00 2001 From: Moritz Schlarb Date: Mon, 2 Oct 2023 07:27:17 +0000 Subject: [PATCH] Update remove-users-orm.rst As mentioned in https://github.com/berkeley-dsep-infra/datahub/pull/5076#issuecomment-1741249455 --- docs/admins/howto/remove-users-orm.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/admins/howto/remove-users-orm.rst b/docs/admins/howto/remove-users-orm.rst index 538f9b6bc..7a20a9d31 100644 --- a/docs/admins/howto/remove-users-orm.rst +++ b/docs/admins/howto/remove-users-orm.rst @@ -28,3 +28,6 @@ You can run the script on your own device. The script depends on the `jhub_clien #. Run `python scripts/delete-unused-users.py {hub_url}` The script currently does not paginate properly, meaning that it operates on the first 200 users provided by the hub. If there are less then 200 active users it is sufficient to keep running the script in a loop until all inactive users are removed. If there are more than 200 active users this procedure will be inadequate. (the script needs to be fixed!) + +In the meantime, another script that supports pagination and therefore more than 200 users can be +found at https://discourse.jupyter.org/t/is-there-a-way-to-bulk-delete-old-users/20866/3.