Deleting accounts from the command line
See original GitHub issueWhen I remove “allowed users” using tljh-config
, I noticed those users are still listed in the JupyterHub admin interface. I assume they can’t log in, but is there any way to remove the users from whatever database JupyterHub is using for its internal list of users? I ask because we have to add/delete users at the end of every semester and I would really like to automate this part of the process.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to Add and Delete Users Accounts With Command ...
1. Open your PC's Start menu. You can do this by clicking the Start button in the bottom left corner of your screen....
Read more >Delete user account from command line
We can use the below commands to delete a user account using windows command prompt. To delete a user account of the local...
Read more >Delete User Account Using Command Line - Prajwal Desai
To delete a user account you can use the control panel and navigate to user accounts and delete the account or you can...
Read more >How can I delete user account using CMD? - [Answer] 2022
To delete a user account using CMD, type “net user username /delete” (without quotes) and press Enter. To delete a user account using...
Read more >How to Delete a User Account in Windows 10 (6 Methods)
Press the Windows key and type “Command Prompt”. Click the first result under 'Best match'. ... In the Command Prompt interface, type net...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just deleted several hundred users with the following method:
This isn’t quite as easy as the command line, but it’s not too bad.
I wrote a bash script that completely removes a user from the command line. You can find it here: https://github.com/JobinJohan/jupyterhub-utility-scripts.
More precisely, when deleting a user, the delete-user-from-system.sh script deletes:
jupyterhub.sqlite
database./etc/passwd
)./home
folder of the user and all its content.Hope it helps 📈😀