Delete empty directory from Jupyter notebook error

Question:

I am trying to delete an empty directory in Jupyter notebook.
When I select the folder and click Delete, an error message pops up saying:
‘A directory must be empty before being deleted.’

There are no files or folders in the directory and it is empty.

Any advice on how to delete it?

Thank you!

Asked By: Moshee

||

Answers:

Usually, Jupyter itself creates a hidden .ipynb_checkpoints folder within the directory when you inspect it. You can check its existence (or any other hidden file/folders) in the directory using ls -a in a terminal that has a current working directory as the corresponding folder.

Answered By: Farzad Vertigo

Go to your local directory where it stores the workbench files, ex:(C:Usersprasadsarada)
You can see all the folders you have created in Jupyter Notebook. delete it there.

Answered By: sarada prasad

I am trying to delete the file from my local directory, but it said that the file cannot be deleted as it is open in another program. I closed Jupyter, anaconda, and everything but I am still facing the issue. Kindly guide me on how to solve this issue.

Answered By: Saif Ur Rehman
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.