Skip to content
Lukas edited this page Oct 31, 2021 · 1 revision

Delete Empty Folders Wiki

  • Python Script to delete all empty folders in the provided path.
  • If there is a nested folder structure without any files then it will only deletes the folder in the "deepest" position.

Usage

in console:

python3 .\delete_empty_folder.py C:\Users

as a python module:

import delef
delef.delef("C:\Users")

Clone this wiki locally