Why is deleting directory so slow?
Moderators: Hacker, petermad, Stefan2, white
Why is deleting directory so slow?
I often need to deleting big directory, but TC acts slowly on this operation compared to windows explorer. It takes much more time to collect information and delete.
can this be solved by some method?
can this be solved by some method?
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
2sy8111
You don't have to open Explorer.
In the configuration window navigate to the Copy/Delete page and check "Use Explorer delete method". Please note that comments are not deleted when using this method.
A way to speed up the internal delete method is to uncheck the calculation of occupied space before copying/deleting (Operation page).
Here is a very interesting related thread:
http://www.ghisler.ch/board/viewtopic.php?p=91385#91385
You don't have to open Explorer.
In the configuration window navigate to the Copy/Delete page and check "Use Explorer delete method". Please note that comments are not deleted when using this method.
A way to speed up the internal delete method is to uncheck the calculation of occupied space before copying/deleting (Operation page).
Here is a very interesting related thread:
http://www.ghisler.ch/board/viewtopic.php?p=91385#91385
pass the currently selected dir to the batch del ?
Good afternoon majkinetor,
May I ask you to elaborate on the "del" batch file please ?
I have tried to run the del command from the command prompt but it is not any faster than the delete operation from within TC.
Thanks in advance for your help.
Regards,
Bernard
May I ask you to elaborate on the "del" batch file please ?
I have tried to run the del command from the command prompt but it is not any faster than the delete operation from within TC.
Thanks in advance for your help.
Regards,
Bernard
"Insanity: doing the same thing over and over again and expecting different results". - Albert Einstein
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
hello bberger.
In my xperience del always cleaned faster then anything else. For instance deleting Opera cache can take eternity while it takes few seconds with del. Its possible that del doesn't access individual files at all, but deletes NTFS directory records.
Acctually, it most certanly does that, as I deleted once by accident entire d:\ drive that was around 100GB basicly instantly by making mistake in batch script. I had something like del /Q %var%\ but var was empty in once situation so after runnign this batch, the drive was empty.
Its best bet to enter the folder in console and just type [face=courier]del. <---- notice the dot[/face]
Anyway, deleting can be slow for number of reasons. If it is slow everywhere than it is not TC problem. I have some crapy DELL machine on my job (marked machines are evil) that need 3 or 4 seconds to delete file of 0b size. Every time... It is 6GHz machine with 200GB SATA drive....
In my xperience del always cleaned faster then anything else. For instance deleting Opera cache can take eternity while it takes few seconds with del. Its possible that del doesn't access individual files at all, but deletes NTFS directory records.
Acctually, it most certanly does that, as I deleted once by accident entire d:\ drive that was around 100GB basicly instantly by making mistake in batch script. I had something like del /Q %var%\ but var was empty in once situation so after runnign this batch, the drive was empty.
Its best bet to enter the folder in console and just type [face=courier]del. <---- notice the dot[/face]
Anyway, deleting can be slow for number of reasons. If it is slow everywhere than it is not TC problem. I have some crapy DELL machine on my job (marked machines are evil) that need 3 or 4 seconds to delete file of 0b size. Every time... It is 6GHz machine with 200GB SATA drive....

Habemus majkam!
Wouah, that was fast !
Thank you for this very prompt answer majkinetor !
I'll try the "dot" at the end of "del" to see if it makes any difference.
Have a nice evening,
Bernard
I'll try the "dot" at the end of "del" to see if it makes any difference.
Have a nice evening,
Bernard
"Insanity: doing the same thing over and over again and expecting different results". - Albert Einstein
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
<snip>
I use the following command:
If you use command prompt:
DOSPROMPT> del/f/s/q . >nul && exit
Note that '&& exit' is optional it will close command prompt windows when it finishes. After that all you have to do is delete remaining folders with TC.
If you enter this command within TC then it [DOS command windows] will close automatically. So you can skip '&& exit'
Saso
Another suggestion:majkinetor ! wrote:hello bberger.
Its best bet to enter the folder in console and just type [face=courier]del. <---- notice the dot[/face]
I use the following command:
If you use command prompt:
DOSPROMPT> del/f/s/q . >nul && exit
Note that '&& exit' is optional it will close command prompt windows when it finishes. After that all you have to do is delete remaining folders with TC.
If you enter this command within TC then it [DOS command windows] will close automatically. So you can skip '&& exit'
Saso