I have my main profile set to delete any empty folders remaining after the files are processed, but I've found that it isn't doing that. Maybe I'm missing something? I made sure I have it checked off at the window that comes up prior to deleting anything and I also updated my main profile after making sure that had been checked off after a run. Is there somewhere else I need to set it as well?
Thanks!
Not deleting empty folders
-
Administrator
- Site Admin
- Posts: 4157
- Joined: 04 Oct 2004, 18:38
- Location: Thailand
- Contact:
Re: Not deleting empty folders
I cant reproduce this problem with the latest version:
Code: Select all
31.05.2026 16:04:43 - AllDup 4.5.72
31.05.2026 16:04:43 - Search method: File extension
31.05.2026 16:04:43 - 1.Source folder: C:\test\AllDup\!test del empty folder\testfolder
31.05.2026 16:04:43 - Option: Compare files from all source folders
31.05.2026 16:04:43 - Determine file count of all source folders...
31.05.2026 16:04:43 - File count: 2
31.05.2026 16:04:43 - Scan: C:\test\AllDup\!test del empty folder\testfolder
31.05.2026 16:04:43 - Found 2 duplicates with a total of 27,95 KB inside folder 'C:\test\AllDup\!test del empty folder\testfolder'
31.05.2026 16:04:43 - Scanned files: 2
31.05.2026 16:04:43 - Groups: 1
31.05.2026 16:04:43 - File comparisons: 2
31.05.2026 16:04:43 - Duplicates: 2 (100%) (27,95 KB)
31.05.2026 16:04:43 - Elapsed time: 00:00:01
31.05.2026 16:05:12 - --------------------------------------------------
31.05.2026 16:05:12 - Action 'Delete files' started.
31.05.2026 16:05:12 - Action 'Delete files' complete.
31.05.2026 16:05:12 - Files deleted: 0 of 2
31.05.2026 16:05:12 - Skipped files: 2
31.05.2026 16:05:12 - Groups protected: 1 (files: 2)
31.05.2026 16:05:12 - INFO: The 'Do not process groups with all files selected' option is enabled, therefore files in such groups were not processed.
31.05.2026 16:05:12 - Files protected: 2
31.05.2026 16:05:25 - --------------------------------------------------
31.05.2026 16:05:25 - Action 'Delete files' started.
31.05.2026 16:05:25 - DELETED: C:\test\AllDup\!test del empty folder\testfolder\pics\2.png
31.05.2026 16:05:25 - DELETED: C:\test\AllDup\!test del empty folder\testfolder\pics\1.png
31.05.2026 16:05:25 - DELETED: C:\test\AllDup\!test del empty folder\testfolder\pics\
31.05.2026 16:05:25 - Empty folders deleted: 1
31.05.2026 16:05:25 - Action 'Delete files' complete.
31.05.2026 16:05:25 - Files deleted: 2 of 2
31.05.2026 16:05:25 - Groups with all files selected: 1
-
laurennial
- Posts: 4
- Joined: 26 Nov 2025, 23:24
Re: Not deleting empty folders
maybe, is it because I have a lot of nested folders? It seems like it's just not deleting folders that are within other folders.
-
Administrator
- Site Admin
- Posts: 4157
- Joined: 04 Oct 2004, 18:38
- Location: Thailand
- Contact:
Re: Not deleting empty folders
No, see deleted subfolder in the source folder at the log of my last post.laurennial wrote: 08 Jun 2026, 10:13 maybe, is it because I have a lot of nested folders? It seems like it's just not deleting folders that are within other folders.
Re: Not deleting empty folders
Might you have a hidden file/directory, even 0-byte, within said folder?
That would cause the folder to not be deleted.
If xxx & yyy were all duplicates, & they were removed, only the folder \3\ would be removed, cause it is the only (newly) empty folder affected by file deletions (of the xxx & yyy's). All the other folders, even though they happen to be empty are left unaffected - even the \dir\ folder (tree) which after delete of the xxx & yyy's happens (at that point in time), to be entirely "empty" (except for the empty directories, themselves).
That would cause the folder to not be deleted.
If xxx & yyy were all duplicates, & they were removed, only the folder \3\ would be removed, cause it is the only (newly) empty folder affected by file deletions (of the xxx & yyy's). All the other folders, even though they happen to be empty are left unaffected - even the \dir\ folder (tree) which after delete of the xxx & yyy's happens (at that point in time), to be entirely "empty" (except for the empty directories, themselves).
Code: Select all
C:\out\SALAMANDER\dir>tree /f /a
C:.
| xxx
| yyy
|
+---1
| \---2
| \---3
| xxx
| yyy
|
+---a
+---b
\---c
