Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a user-facing way to "reset" hub storage #226

Open
asmacdo opened this issue Jan 27, 2025 · 2 comments
Open

Add a user-facing way to "reset" hub storage #226

asmacdo opened this issue Jan 27, 2025 · 2 comments

Comments

@asmacdo
Copy link
Member

asmacdo commented Jan 27, 2025

Users familiar with the terminal can clean up on their own, but for users not very comfortable with the terminal, it would be friendly to help them out a bit.

(Functionally, we could just delete the user home, and next login would rerun the initialization.)

I asked upstream just in case theres something they suggest https://discourse.jupyter.org/t/could-we-add-a-cleanup-for-users/32169

@satra
Copy link
Member

satra commented Jan 27, 2025

fastest way would be to move the directory and run a cron job to delete folders from the moved to directory

mv <userhome> `to_delete/<userhome>-<uuid> # this is instantaneous
add to delete task `to_delete/<userhome>-<uuid> # this can happen in the background

@yarikoptic
Copy link
Member

👍 to @satra - was about to suggest the same. Those users though, never know how upset they are, I would recommend to add a suffix, e.g. to_delete/<userhome>-<uuid>-<random> so if prior deletion is not complete yet, and they want to be forgotten again (unlikely but possible) , their desire could be realized without conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants