Share via

Can't delete folder

Anonymous
2017-11-06T08:06:19+00:00

I have a folder and sub files I cannot delete. Msg says "you'll need to provide administrator permission to delete this folder"  I am the administrator and the only user on this PC. Can't change properties on the folder because it doesn't recognize me as an administrator.

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2017-11-09T14:28:04+00:00

    Hi Michele,

    If you are trying to delete a system file or a folder under the root C drive, you will have to take ownership of the files and folders in order to make modifications. This is because system files and folders are owned by the TrustedInstaller.

    By default, almost all system files, system folders and even registry keys in Windows 10 are owned by a special built-in user account called TrustedInstaller.

    To take ownership of the files and folders:

    1. Right-click on the file or folder and go to Properties window. Under Properties, click on Security tab.
    2. In the next window, you will see that you don’t have any permission to change it. In such cases, you need to take ownership of the file or folder. To do so click on Advanced.
    3. Click on Change and enter the object name. You should type your Windows username as the object name, then click OK. You should then be able to see that the owner has changed.
    4. Click on Replace owner on subcontainers and object and click Apply.
    5. Once you click on Apply, you’ll see a warning message. Just click on Yes to proceed. Then, you will need to click OK twice.
    6. Now, under the Advanced permissions, you will see a change, and you will see the option to add Multiple Objects. To add multiple objects and to inherit permission you can click on Change Permissions.
    7. To inherit permissions, click on Enable inheritance. To add a new object, click on Add, and click on Select a Principal and type in the object name.
    8. Now,  you can enable the Basic Permission. If you want to enable advanced permission, click on Show advanced permissions.
    9. Once you complete everything, click OK and close the window. You should be able to delete the particular folder or file.

    Let us know how it goes.

    40+ people found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-11-09T19:31:27+00:00

    Thanks for the detailed reply. Looks like sound advice and I'll save it for future reference. Oddly enough, the problem resolved itself. After I had tried many different ways to solve this problem, I happened to try one more time to delete the folder and suddenly, it worked. Not the first odd thing that's happened on this machine lately - had to force a shutdown, suddenly had to select password or pin for login, etc. In each case the problem did not persist. Virus or something maybe?

    Anyway, thanks again for the reply.

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-11-06T08:44:25+00:00

    Directory created when I tried to install wampserver (provides a local server with apache, MySQL, and PHP)  

    C:\wamp64  contains several sub folders for maria database

    can't delete any of it

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2017-11-06T08:32:22+00:00

    So where is this folder located and what does it contain?

    0 comments No comments