Page 1 of 1

Not deleting empty folders

Posted: 30 May 2026, 23:45
by laurennial
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!

Re: Not deleting empty folders

Posted: 31 May 2026, 16:09
by Administrator
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

Re: Not deleting empty folders

Posted: 08 Jun 2026, 10:13
by laurennial
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

Posted: 08 Jun 2026, 12:17
by Administrator
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.
No, see deleted subfolder in the source folder at the log of my last post.

Re: Not deleting empty folders

Posted: 09 Jun 2026, 00:25
by therube
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).

Code: Select all

C:\out\SALAMANDER\dir>tree /f /a
C:.
|   xxx
|   yyy
|
+---1
|   \---2
|       \---3
|               xxx
|               yyy
|
+---a
+---b
\---c