How to Delete Files That Need Administrator Permission on Windows
When stubborn files refuse to submit to deletion -- even while you use your administrator account -- change their ownership and permissions.
Being denied the ability to delete a file or folder because it requires administrator permission can be quite annoying -- especially when you're on your administrator account. To delete these stubborn files, you need to take ownership of them and adjust your permissions.
In the case of files that aren't locked out from administrators, all you have to do is sign in to an administrator account to delete the file. If you aren't your computer's administrator, ask that person about deleting the file for you.All actions that require administrator permissions to delete have a blue and yellow shield next to them.
Open File Explorer and find the file or folder you want to delete. Right-click the file and select Properties.
If the file or folder in question is listed as belonging to TrustedInstaller, make sure you know what you're doing before proceeding. TrustedInstaller is a built-in account for installing and updating Windows programs and components. Any changes to these files may cause serious problems with Windows.
Click the Security tab followed by the Advanced button.
Click Change near the top of the dialog box. The box display's who is the owner of the file or folder, and if the name doesn't match your administrator account, you can't delete the file.
On Windows 7 computers, instead select the Owner tab from the dialog box, followed by Edit.
Type the username you want to take over ownership of the file or folder in the Enter the object name to select field. Click Check Names to make sure you've entered a valid name, then click OK. This closes the dialog and returns you to the Advanced Security Settings dialog.
On Windows 7 computers, instead select your name from the Change owner to list. Click the box next to Replace owner on subcontainers and objects and click OK. This finalizes changing ownership for Windows 7, so close the Properties window and follow Step 1 and Step 2 to return to the Advanced Security Options dialog and skip to Step 6.
Click the box next to Replace owner on subcontainers and objects and click Apply. When the Windows Security prompt appears, click OK and close out all the dialogs, as well as the Properties window. The prompt reminds you that to make any changes to the file or folder, you need to close and re-open the properties dialog.Follow Step 1 and Step 2 to return to the Advanced Security Options before continuing.
Select your name from the list -- you may be listed simply as Administrators -- and click the box next to Replace all child object permission entries with inheritable permission entries from this object. Click Edit.
For Windows 7, select the Permissions tab and click Change Permissions.
Click the Full control box in the Basic permissions section and click OK.
For Windows 7, select your name from the list. Click the Include inheritable permissions from this object's parent box and Replace all child object permissions with inheritable permissions from this object box and click Edit.
Click OK on the Advanced Security Settings dialog. When prompted, click Yes to apply the permissions. This ends all steps for Windows 8.1. The selected files or folders can now be deleted.
For Windows 7, click the box next to Full control in the Permissions list and click OK.
For Windows 7, click OK on the Advanced Security Settings dialog. When prompted, click Yes to apply the permissions.
These instructions are for changing permissions entirely within Windows. If you're comfortable using third-party software, there a number of simple solutions also available.