You want to delete a system file but Windows prevents you from doing so despite your admin rank? Explanations in the rest of the article.
Each file on the hard drive belongs to one or more owners with a number of permissions and restrictions. System files are more protected: they are owned by the TrustedInstaller owner, which prevents you from removing them. Two steps will be sufficient to overcome this problem.
To do this, open the start Menu, enter CMD in the search field and do Entry.
The first step will be to take control of the file in question. The owner will no longer be the system but the user of the current session. In our example, I want to take control of one of the default wallpapers provided in Windows 7 from which it is impossible to remove. Copy the following line of code and paste it into the console:
Make Entry to validate. You get the following message:
For now it is still not possible to delete it. To do this, enter the following line of code in the console by changing “Benjamin” by your current session username (listed at the top of the Start menu):
cacls C:\Windows\Web\Wallpaper\Nature\img1.jpg/G Benjamin:F
Enter O and do Entry to the question Are you sure?
You can now delete the file in question without any worries.
Before deleting a system file, make a backup copy, and be sure what you are doing! Is there any real interest in removing it?