Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneknapp committed Oct 4, 2023
1 parent c2de00c commit df941bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/admins/howto/remove-users-orm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,4 @@ You can run the script on your own device. The script depends on the `jhub_clien

#. You will need to acquire a JupyterHub API token with administrative rights. A hub admin can go to {hub_url}/hub/token to create a new one.
#. Set the environment variable `JUPYTERHUB_API_TOKEN` to the token.
#. 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!)
#. Run `python scripts/delete-unused-users.py --hub_url {hub_url}`

0 comments on commit df941bd

Please sign in to comment.