From a4f2d2b1dd2e8513c3e4fdba0f251b9470be3e95 Mon Sep 17 00:00:00 2001 From: Niccolo Borgioli Date: Tue, 22 Aug 2023 09:28:40 +0200 Subject: [PATCH] delete empty dirs --- pages/cli/delete-empty-directories.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pages/cli/delete-empty-directories.md diff --git a/pages/cli/delete-empty-directories.md b/pages/cli/delete-empty-directories.md new file mode 100644 index 0000000..3a0e642 --- /dev/null +++ b/pages/cli/delete-empty-directories.md @@ -0,0 +1,7 @@ +# Delete empty directories + +```bash +find . -type d -empty -delete +``` + +This recursively finds and deletes empty directory.