How do I get administrator permission to delete a file?
- Take ownership of the folder
- Disable User Account Control
- Activate the built-in Administrator account
- Use SFC
- Use Safe Mode
- Use third party software
The error ‘You’ll need to provide administrator permission to delete this folder’ in Windows 10 appears mostly due to the newest security and privacy features of the Windows operating system.
Some actions require users to provide administrator permission to delete, copy or even rename files or change settings. Such permission prevents unauthorised users but also external sources like scripts from accessing system data.
Many Windows users have reported that they have seen this error. So do not worry, in this article you will find some valuable solutions to solve your problem.
Steps to get administrator permission to delete folders
Solution 1: Take ownership of the folder
This is the easiest method and may suit most of the people in solving this error. In order to do this, you need to:
- Navigate to the folder you want to delete, right click it and select Properties
- Select the Security tab and click the Advanced button
- Click on Change located at the front of the Owner file and click on the Advanced button
- In the Select user or group page, click on Advanced in order to select which accounts are available
- Click on Find Now and then select the user to whom you wish to transfer the ownership to
- Right click on the folder and click on Properties
- Navigate to the Security tab and click on Advanced
- Under the Permission tab, click on Add and then click on Select a Principal in order to add your account
- Click on Advanced and then click on the Find Now button to list all the accounts to whom permission can be granted
- Locate your account from the list and click on Ok and save changes
Solution 2: Disable User Account Control
If you took ownership of the folder but it still cannot be deleted, the next thing you can try is to turn off User Account Control as it sometimes might block permission.
Make sure to turn it back on once you have deleted the file:
- Search UAC in the Start search box and then press Enter to navigate to the Change User Account Control settings window
- At the bottom of the settings move the slider to Never notify
- Restart your computer
Note: Once you complete your Task change the slider to Notify me only when programs try to make changes to my computer.
Solution 3: Activate the built-in Administrator account
If the solutions described above did not help you solve the problem, the next thing you should try is to enable the built-in administrator account:
- Type in CMD in the search box and then right click to Run as administrator
- In Command Prompt, copy and paste the following command: net user administrator /active: yes
- Type the following command: net user administrator <Password>, and then press ENTER, where <Password> tag should be replaced with the password that you want to set to the administrator account
- Restart your computer
Solution 4: Use SFC
SFC (System File Checker) is a built-in Windows tool that you can use to scan and repair corrupted system files. If system files are missing or corrupted, then Windows may not behave as expected and this might also be the reason for which you cannot delete the file:
- Go to Start and type cmd
- Right click on Command Prompt and select Run as Administrator
- Type sfc /scannow and wait for the scanning process to complete
- Restart your computer
Solution 5: Use Safe Mode
Another good suggestion is trying to delete the folder in Safe Mode:
- Open Settings and click on Update&Security
- Click on Recovery and then under Advanced Startup click the Restart now button
- Click on Troubleshoot and then go to Advanced options
- Press the Restart button and on Startup settings press F4 to enable Safe mode
- While in Safe Mode, locate the file that you want to delete and try to perform the operation
- Restart your computer to exit Safe mode
If you’re interested in how to add Safe Mode to the boot menu in windows 10, check out this article.
Solution 6: Use third party software
You can always try to use a third party software to delete a file in order to delete corrupted files that Windows cannot delete.
We hope that this article helped you solve your problem. If you have other alternate solutions for this situation, please do not hesitate to use the comments section down below.
Also, leave there any other questions you may have.
- How to Pin Folders to Start Menu in Windows 10
- Full Fix: Cannot create new folder in Windows 10, 8.1, 7
- Can’t rename folders in Windows 10 [Fix]
- How to delete locked files or folders