Jump to content
CCleaner Community Forums

Delete Folder & Contents


pmokover

Recommended Posts

CCleaner v2.15.815

 

[*]Added command-line secure deletion.

 

e.g. CCleaner.exe /delete "folder*.*|MyFile.txt"

with this option you can do that... ;)
Link to post
Share on other sites

right now only from the command line... maybe the suggestion will be better if you describe that the option will be select if you wanna delete the entire folder (with its content) or just the files inside it when you add a folder to the include list... ;)

Link to post
Share on other sites
right now only from the command line... maybe the suggestion will be better if you describe that the option will be select if you wanna delete the entire folder (with its content) or just the files inside it when you add a folder to the include list... ;)

 

I tried the command line /delete feature and it deletes the contents of the folder but not the folder itself so it is essentially the same as adding the folder to the include list. Is that the way /delete is supposed to work (delete the contents but not the folder itself)?

 

Peter

Link to post
Share on other sites
  • Moderators

Well, that's the way it does work. The only way I've found of deleting a folder is to nest it in another folder and then specify that folder, but that might be defeating the object.

Link to post
Share on other sites
Well, that's the way it does work. The only way I've found of deleting a folder is to nest it in another folder and then specify that folder, but that might be defeating the object.

 

Yes, that would defeat the purpose.

 

So, I will clarify my original suggestion: On the Options|Include screen I would like a new option to specify that the contents of a particular folder should be deleted AND the folder itself should also be deleted.

 

Peter

Link to post
Share on other sites
Why not just throw the whole folder in the recycle bin? >_>

 

There are certain folders that keep getting generated over and over again by various programs - for temporary or other useless purposes. These folders always have the same name and are always in the same location. I don't want to have to manually delete them on a daily basis. Since I run CCleaner frequently it would be much easier if CCleaner would just delete the whole folder.

 

Peter

Link to post
Share on other sites
  • Moderators

If they are not on the c drive (in other words, the folder you want to delete is a sub-folder):

 

Go to Options/Include, Select Add Folder, add the folder you want deleting. When you have added the folder to CC's list, right click on the folder name and select Manual Edit. Remove the \*.* from the end of the folder name and save. Now run the Custom Files and Folders part of CC. The folder and its contents, if there are any, will be removed (the folder is not shown on Analyse, but still goes to folder heaven).

 

I suggest you test this on a safe folder, as I have just done. I would be a little cagey about deleting a sub-folder in c:\Windows, so do it at your own risk.

Link to post
Share on other sites
If they are not on the c drive (in other words, the folder you want to delete is a sub-folder):

 

Go to Options/Include, Select Add Folder, add the folder you want deleting. When you have added the folder to CC's list, right click on the folder name and select Manual Edit. Remove the \*.* from the end of the folder name and save. Now run the Custom Files and Folders part of CC. The folder and its contents, if there are any, will be removed (the folder is not shown on Analyse, but still goes to folder heaven).

 

I suggest you test this on a safe folder, as I have just done. I would be a little cagey about deleting a sub-folder in c:\Windows, so do it at your own risk.

That seems to work! Thanks. It will be very useful.

 

Peter

Link to post
Share on other sites
  • 4 weeks later...
That seems to work! Thanks. It will be very useful.

 

Peter

An update...

 

It appears that if the folder in marked Read Only CCleaner will not delete it. I would like the option of having it delete the folder (and contents) regardless of how it's marked (read only, hidden, system).

 

Peter

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...