How to delete a folder that is being used by the system

4

I am trying to delete this folder, C:\Windows\System32\catroot. I am using the application, LockHunter and it is telling me that it is being used by the system and the svchost.exe and it is preventing me from deleting it. How do I delete this folder?

Thank you for your help and support!

Tom

Posted 2014-03-12T23:11:04.593

Reputation: 377

Question was closed 2014-03-18T20:21:29.023

2Which windows OS? If you don't mind, why would you want to delete this windows system folder? It contains the catalog of previous windows updates. – G Koe – 2014-03-12T23:13:32.650

You can try safe mode but if it's in use you have to delete it before it becomes inmuse – Ramhound – 2014-03-12T23:25:14.640

O, well I thought is was a virus, my bad. I am currently using windows 8.1 pro. Just wondering, if I were to delete a system folder how would I do it? Thank you for your help on this! – Tom – 2014-03-12T23:25:35.580

I tried safe mode and was unsuccessful. – Tom – 2014-03-12T23:26:43.693

Answers

4

This answer is addressing the "Just wondering, if I were to delete a system folder how would I do it?" comment. As the other comments note, you probably shouldn't delete the catroot folder.

Some programs, such as Unlocker, are able to forcibly close handles or end the process. However, forcibly closing handles is a very dangerous thing to do with possible data corruption and other weird side effects. And you obviously can't end the system process.

At the end of the day, what you need to do is modify the file offline. In other words, you need to do it while the OS is not running. To this end, you can boot off a different OS, such as a Linux Live CD/USB, or you can connect the hard drive to a different machine.

Be warned that deleting or modifying system files may cause instability or even cause it to be unable to boot. Make sure you do your research properly, have backups, and consider renaming or moving instead of deleting, so you can restore later. Also, "I thought it was a virus" is a very bad reason to just go and delete something without good research or a second opinion.

Bob

Posted 2014-03-12T23:11:04.593

Reputation: 51 526

I totally understand, bad job on my part for not checking what the catroot folder was> Thank you for your answer on this. – Tom – 2014-03-12T23:45:25.053