Skip to main content

CHANGELOG.md

1# Changelog
3## v1.3.1 - 2026-02-26
5`emptydir` can now clean up the current directory by running `emptydir .`; previously this returned an os error 22.
7## v1.3.0 - 2025-12-16
9If `emptydir` looks at a directory but there's a reason the directory can't be deleted, it now prints the reason.
11Example:
13```console
14$ emptydir ~/Desktop
15directory is not empty; contains 3 entries:
16 - makeup-tips.html
17 - paste_images.py
18 - Screenshot 2024-12-31 at 10.46.41.png
19```
21Previously, this would simply report "no empty directories found".
23This reason is only printed for the initial target of `emptydir`, if nothing can be deleted.
25## v1.2.2 - 2025-08-16
27If `emptydir` tries to delete a directory but gets an error, it now prints that error to stderr. Previously the error would be silently ignored.
29This fixes a bug where emptydir could appear to do nothing -- it would report "no empty directories found", but actually it had found empty directories it was unable to delete.
31## v1.2.1 - 2024-12-01
33Don't delete the `.git` directory or any subdirectories.
35Messing with the internal structure `.git` can cause issues for Git, so just leave it as-is, even if it contains empty folders.
37## v1.2.0 - 2024-08-21
39Delete empty parent directories.
41If the target directory is the only entry in an otherwise empty directory, then the parent directory will also be deleted (and emptydir will keep going through parent directories until it finds one which is non-empty).
43## v1.1.3 - 2024-08-21
45Delete empty folders which only contain a `.jekyll-cache` folder.
47## v1.1.2 - 2024-08-16
49Delete empty folders which only contain an `.ipynb_checkpoints` folder.
51## v1.1.1 - 2024-07-27
53Delete empty folders which only contain a `desktop.ini` file.
55## v1.1.0 - 2024-07-27
57Delete empty folders which only contain [a `Thumbs.db` file](https://en.wikipedia.org/wiki/Windows_thumbnail_cache#Thumbs.db).
59## v1.0.0 - 2024-06-18
61Initial release.