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 implementation for delete_forever #512

Open
richardbrinkman opened this issue Jan 1, 2024 · 1 comment
Open

Add implementation for delete_forever #512

richardbrinkman opened this issue Jan 1, 2024 · 1 comment

Comments

@richardbrinkman
Copy link

Currently DockerSpawner does not implement the delete_forever function and since the implementation of it in the parent Spawner class is empty, nothing special happens when a user is deleted. If users have persistent storage such as user volumes or bind mounts, it will never be deleted.

Proposed change

Add a configurable option to turn on of off automatic deletion of persistent storage, for example: c.DockerSpawner.delete_persistent_storage_on_user_deletion = True.

Implement the DockerSpawner.delete_forever function that checks whether the volume of bind mount should be deleted.

Alternative options

Always delete persistent storage on user deletion, but that will be an backwards incompatible change.

Who would use this feature?

Admins that delete users. With the proposed feature they don't have to ssh into their Hub and perform a docker volume rm jupyter-hub-<username> any more.

Copy link

welcome bot commented Jan 1, 2024

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

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

No branches or pull requests

1 participant