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

Allow deleting nonempty directorys #2760

Closed
ghost opened this issue Aug 14, 2017 · 9 comments · Fixed by #3108
Closed

Allow deleting nonempty directorys #2760

ghost opened this issue Aug 14, 2017 · 9 comments · Fixed by #3108

Comments

@ghost
Copy link

ghost commented Aug 14, 2017

Hello,
It is frequently useful to be able to delete non empty dirs, especially if there are many subfolders. Could you please add a feature for that (deleting nonempty dirs, maybe with a confirmation)?

@dsblank
Copy link
Member

dsblank commented Oct 24, 2017

Now that delete will actually move to trash (coming in 5.3) we should allow Jupyter to delete non-empty directories.

@takluyver
Copy link
Member

We should first check that send2trash actually allows you to send directories to trash on different platforms, not just individual files.

@blink1073
Copy link
Contributor

I just verified with non-empty directories on macOS 10.13, Ubuntu 16.04, and Windows 10 using Send2Trash (1.4.1)

@blink1073
Copy link
Contributor

In all cases I was able to delete and restore the folder.

@takluyver
Copy link
Member

Thanks @blink1073 :-)

@damianavila
Copy link
Member

In all cases I was able to delete and restore the folder.

Then, should be closing this one?

@jzf2101
Copy link
Contributor

jzf2101 commented Nov 20, 2017

@takluyver is this ready to close?

@takluyver
Copy link
Member

No, I think @blink1073 checked that the underlying code we're using is able to delete nonempty directories correctly. Someone still needs to enable that in our code before we can close it.

@hemangjoshi37a
Copy link

Has it been already solved??

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.