Jump to content


Delete Folder & Contents


14 replies to this topic

#1 OFFLINE   pmokover

    Member

  • Members
  • PipPip
  • 19 posts

Posted 22 December 2008 - 06:18 PM

It would be very useful to be able to specify a particular folder on the Options|Include list (or some new list) and have CCleaner delete the folder plus everything in the folder.

Peter

#2 OFFLINE   warmth

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • Gender:Male
  • Location:Zaragoza, Spain
  • Interests:ACMilan, Deportivo Táchira, Cars, Nokia, Tech, Robotics, Internet, Muay Thai, Wine, Cooking

Posted 22 December 2008 - 06:43 PM

Check the new release 2.15 :P
.: warmth :.

Posted ImagePosted ImagePosted ImagePosted Image

Betatesting a life!
Currently: E7-00 Symbian Anna 022.014 RM-626 | Previously: X7-00, N8-00, N97, N96 and at least 20 more
Official Nokia Ovi Suite Beta Tester | Nokia Beta Labs Contributor of the month (June, 2011) | Official Messenger Plus! Live Beta Tester | Official Messenger Discovery Beta Tester

#3 OFFLINE   pmokover

    Member

  • Members
  • PipPip
  • 19 posts

Posted 22 December 2008 - 08:45 PM

View Postwarmth, on Dec 22 2008, 02:43 PM, said:

Check the new release 2.15 :P

I have 2.15 and I don't see anything new about being able to delete a folder and its contents. Where exactly in 2.15 is this done?

Peter

#4 OFFLINE   warmth

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • Gender:Male
  • Location:Zaragoza, Spain
  • Interests:ACMilan, Deportivo Táchira, Cars, Nokia, Tech, Robotics, Internet, Muay Thai, Wine, Cooking

Posted 22 December 2008 - 09:44 PM

View PostMrG, on Dec 22 2008, 01:46 PM, said:

CCleaner v2.15.815
[list]
[*]Added command-line secure deletion.

e.g. CCleaner.exe /delete "folder*.*|MyFile.txt"
with this option you can do that... ;)
.: warmth :.

Posted ImagePosted ImagePosted ImagePosted Image

Betatesting a life!
Currently: E7-00 Symbian Anna 022.014 RM-626 | Previously: X7-00, N8-00, N97, N96 and at least 20 more
Official Nokia Ovi Suite Beta Tester | Nokia Beta Labs Contributor of the month (June, 2011) | Official Messenger Plus! Live Beta Tester | Official Messenger Discovery Beta Tester

#5 OFFLINE   pmokover

    Member

  • Members
  • PipPip
  • 19 posts

Posted 22 December 2008 - 09:46 PM

View Postwarmth, on Dec 22 2008, 05:44 PM, said:

with this option you can do that... ;)

Is it possible to do that from within the program or only from the command line?

#6 OFFLINE   warmth

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • Gender:Male
  • Location:Zaragoza, Spain
  • Interests:ACMilan, Deportivo Táchira, Cars, Nokia, Tech, Robotics, Internet, Muay Thai, Wine, Cooking

Posted 22 December 2008 - 09:50 PM

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... ;)
.: warmth :.

Posted ImagePosted ImagePosted ImagePosted Image

Betatesting a life!
Currently: E7-00 Symbian Anna 022.014 RM-626 | Previously: X7-00, N8-00, N97, N96 and at least 20 more
Official Nokia Ovi Suite Beta Tester | Nokia Beta Labs Contributor of the month (June, 2011) | Official Messenger Plus! Live Beta Tester | Official Messenger Discovery Beta Tester

#7 OFFLINE   pmokover

    Member

  • Members
  • PipPip
  • 19 posts

Posted 22 December 2008 - 09:59 PM

View Postwarmth, on Dec 22 2008, 05:50 PM, said:

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

#8 OFFLINE   Augeas

    Moderator

  • Moderators
  • 2,082 posts
  • Gender:Not Telling
  • Location:Worcestershire, UK

Posted 23 December 2008 - 12:14 AM

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.

#9 OFFLINE   pmokover

    Member

  • Members
  • PipPip
  • 19 posts

Posted 23 December 2008 - 12:41 AM

View PostAugeas, on Dec 22 2008, 08:14 PM, said:

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

#10 OFFLINE   Giga

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 26 December 2008 - 09:12 AM

Why not just throw the whole folder in the recycle bin? >_>

#11 OFFLINE   pmokover

    Member

  • Members
  • PipPip
  • 19 posts

Posted 27 December 2008 - 12:07 AM

View PostGiga, on Dec 26 2008, 05:12 AM, said:

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

#12 OFFLINE   Augeas

    Moderator

  • Moderators
  • 2,082 posts
  • Gender:Not Telling
  • Location:Worcestershire, UK

Posted 27 December 2008 - 12:31 AM

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.

#13 OFFLINE   DennisD

    Just another volunteer

  • Moderators
  • 7,932 posts
  • Gender:Male
  • Location:England: NE Coast

Posted 27 December 2008 - 12:43 AM

Worked for me Augeas. Deleted the files individually from within the folder, but took the folder as well.

Nice one.

#14 OFFLINE   pmokover

    Member

  • Members
  • PipPip
  • 19 posts

Posted 27 December 2008 - 01:26 PM

View PostAugeas, on Dec 26 2008, 08:31 PM, said:

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

#15 OFFLINE   pmokover

    Member

  • Members
  • PipPip
  • 19 posts

Posted 23 January 2009 - 07:33 PM

View Postpmokover, on Dec 27 2008, 09:26 AM, said:

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