How can I delete an inaccessible folder on Windows 10?How do you find what process is holding a file open in...

Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?

A social experiment. What is the worst that can happen?

Should I outline or discovery write my stories?

Biological Blimps: Propulsion

Are the IPv6 address space and IPv4 address space completely disjoint?

Count the occurrence of each unique word in the file

Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?

How can "mimic phobia" be cured or prevented?

Is it improper etiquette to ask your opponent what his/her rating is before the game?

Are paving bricks differently sized for sand bedding vs mortar bedding?

The screen of my macbook suddenly broken down how can I do to recover

"Spoil" vs "Ruin"

Is the U.S. Code copyrighted by the Government?

New brakes for 90s road bike

Terse Method to Swap Lowest for Highest?

Pre-mixing cryogenic fuels and using only one fuel tank

How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?

When were female captains banned from Starfleet?

Symbol used to indicate indivisibility

Is it possible to have a strip of cold climate in the middle of a planet?

Why does the Sun have different day lengths, but not the gas giants?

If infinitesimal transformations commute why dont the generators of the Lorentz group commute?

Added a new user on Ubuntu, set password not working?

Redundant comparison & "if" before assignment



How can I delete an inaccessible folder on Windows 10?


How do you find what process is holding a file open in Windows?How do I tell Git for Windows where to find my private RSA key?Running a script as administrator without login as administratorWindows Server - How to efficiently set user security permissions?Apache permission Problemsfreenas windows acls folder permissionsUser accidentally messed up a Robocopy command and caused a bunch of folders to get created with corrupt securityChanging Windows Network Profile from “DomainAuthenticated” to PublicRemoving a recursive folder that's not recursive in windows fails with “Source Path Too Long”Folder ACLs lockdown. Unable to take ownership













0















I have a folder on one of my hard drives, P:csharpaperturekeystonesrcKeystone, which I want to delete but cannot. I have tried numerous different ways to change/reset permissions and I still cannot delete this folder.



PS P:csharpaperture> whoami
azureadmikelloyd

PS P:csharpaperture> rm -Recurse -Force .keystone
rm : Cannot remove item P:csharpaperturekeystonesrc: The directory is not empty.
At line:1 char:1
+ rm -Recurse -Force .keystone
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (src:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
rm : Cannot remove item P:csharpaperturekeystone: The directory is not empty.
At line:1 char:1
+ rm -Recurse -Force .keystone
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (P:csharpaperturekeystone:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand

PS P:csharpaperture> rmdir .keystone

Confirm
The item at P:csharpaperturekeystone has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A
rmdir : Access to the path 'P:csharpaperturekeystonesrcKeystone' is denied.
At line:1 char:1
+ rmdir .keystone
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (P:csharpaperturekeystone:String) [Remove-Item], UnauthorizedAccessException
+ FullyQualifiedErrorId : RemoveItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.RemoveItemCommand

PS P:csharpaperture> icacls.exe .keystone /reset /T
processed file: .keystone
processed file: .keystonesrc
.keystonesrcKeystone: Access is denied.
Successfully processed 2 files; Failed processing 1 files


I don't have read privileges.



no read privileges



It can't show the owner:



no owner



If I try to change the owner, I don't have permission to view or edit the object:



enter image description here



What is really strange is that I created the folder with my user, so I should be the effective owner. I have tried to delete the user as Administrator, but I can't do that either. I can't even delete the folder as NTSystem:



P:csharpaperturekeystonesrc>whoami /user

USER INFORMATION
----------------

User Name SID
=================== ========
nt authoritysystem S-1-5-18

P:csharpaperturekeystonesrc>rmdir /S Keystone
Keystone, Are you sure (Y/N)? Y
Access is denied.


nt system authority



How can I delete this folder that I created?









share



























    0















    I have a folder on one of my hard drives, P:csharpaperturekeystonesrcKeystone, which I want to delete but cannot. I have tried numerous different ways to change/reset permissions and I still cannot delete this folder.



    PS P:csharpaperture> whoami
    azureadmikelloyd

    PS P:csharpaperture> rm -Recurse -Force .keystone
    rm : Cannot remove item P:csharpaperturekeystonesrc: The directory is not empty.
    At line:1 char:1
    + rm -Recurse -Force .keystone
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : WriteError: (src:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
    rm : Cannot remove item P:csharpaperturekeystone: The directory is not empty.
    At line:1 char:1
    + rm -Recurse -Force .keystone
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : WriteError: (P:csharpaperturekeystone:DirectoryInfo) [Remove-Item], IOException
    + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand

    PS P:csharpaperture> rmdir .keystone

    Confirm
    The item at P:csharpaperturekeystone has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
    [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A
    rmdir : Access to the path 'P:csharpaperturekeystonesrcKeystone' is denied.
    At line:1 char:1
    + rmdir .keystone
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : PermissionDenied: (P:csharpaperturekeystone:String) [Remove-Item], UnauthorizedAccessException
    + FullyQualifiedErrorId : RemoveItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.RemoveItemCommand

    PS P:csharpaperture> icacls.exe .keystone /reset /T
    processed file: .keystone
    processed file: .keystonesrc
    .keystonesrcKeystone: Access is denied.
    Successfully processed 2 files; Failed processing 1 files


    I don't have read privileges.



    no read privileges



    It can't show the owner:



    no owner



    If I try to change the owner, I don't have permission to view or edit the object:



    enter image description here



    What is really strange is that I created the folder with my user, so I should be the effective owner. I have tried to delete the user as Administrator, but I can't do that either. I can't even delete the folder as NTSystem:



    P:csharpaperturekeystonesrc>whoami /user

    USER INFORMATION
    ----------------

    User Name SID
    =================== ========
    nt authoritysystem S-1-5-18

    P:csharpaperturekeystonesrc>rmdir /S Keystone
    Keystone, Are you sure (Y/N)? Y
    Access is denied.


    nt system authority



    How can I delete this folder that I created?









    share

























      0












      0








      0








      I have a folder on one of my hard drives, P:csharpaperturekeystonesrcKeystone, which I want to delete but cannot. I have tried numerous different ways to change/reset permissions and I still cannot delete this folder.



      PS P:csharpaperture> whoami
      azureadmikelloyd

      PS P:csharpaperture> rm -Recurse -Force .keystone
      rm : Cannot remove item P:csharpaperturekeystonesrc: The directory is not empty.
      At line:1 char:1
      + rm -Recurse -Force .keystone
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : WriteError: (src:DirectoryInfo) [Remove-Item], IOException
      + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
      rm : Cannot remove item P:csharpaperturekeystone: The directory is not empty.
      At line:1 char:1
      + rm -Recurse -Force .keystone
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : WriteError: (P:csharpaperturekeystone:DirectoryInfo) [Remove-Item], IOException
      + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand

      PS P:csharpaperture> rmdir .keystone

      Confirm
      The item at P:csharpaperturekeystone has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
      [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A
      rmdir : Access to the path 'P:csharpaperturekeystonesrcKeystone' is denied.
      At line:1 char:1
      + rmdir .keystone
      + ~~~~~~~~~~~~~~~~~
      + CategoryInfo : PermissionDenied: (P:csharpaperturekeystone:String) [Remove-Item], UnauthorizedAccessException
      + FullyQualifiedErrorId : RemoveItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.RemoveItemCommand

      PS P:csharpaperture> icacls.exe .keystone /reset /T
      processed file: .keystone
      processed file: .keystonesrc
      .keystonesrcKeystone: Access is denied.
      Successfully processed 2 files; Failed processing 1 files


      I don't have read privileges.



      no read privileges



      It can't show the owner:



      no owner



      If I try to change the owner, I don't have permission to view or edit the object:



      enter image description here



      What is really strange is that I created the folder with my user, so I should be the effective owner. I have tried to delete the user as Administrator, but I can't do that either. I can't even delete the folder as NTSystem:



      P:csharpaperturekeystonesrc>whoami /user

      USER INFORMATION
      ----------------

      User Name SID
      =================== ========
      nt authoritysystem S-1-5-18

      P:csharpaperturekeystonesrc>rmdir /S Keystone
      Keystone, Are you sure (Y/N)? Y
      Access is denied.


      nt system authority



      How can I delete this folder that I created?









      share














      I have a folder on one of my hard drives, P:csharpaperturekeystonesrcKeystone, which I want to delete but cannot. I have tried numerous different ways to change/reset permissions and I still cannot delete this folder.



      PS P:csharpaperture> whoami
      azureadmikelloyd

      PS P:csharpaperture> rm -Recurse -Force .keystone
      rm : Cannot remove item P:csharpaperturekeystonesrc: The directory is not empty.
      At line:1 char:1
      + rm -Recurse -Force .keystone
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : WriteError: (src:DirectoryInfo) [Remove-Item], IOException
      + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
      rm : Cannot remove item P:csharpaperturekeystone: The directory is not empty.
      At line:1 char:1
      + rm -Recurse -Force .keystone
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : WriteError: (P:csharpaperturekeystone:DirectoryInfo) [Remove-Item], IOException
      + FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand

      PS P:csharpaperture> rmdir .keystone

      Confirm
      The item at P:csharpaperturekeystone has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue?
      [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A
      rmdir : Access to the path 'P:csharpaperturekeystonesrcKeystone' is denied.
      At line:1 char:1
      + rmdir .keystone
      + ~~~~~~~~~~~~~~~~~
      + CategoryInfo : PermissionDenied: (P:csharpaperturekeystone:String) [Remove-Item], UnauthorizedAccessException
      + FullyQualifiedErrorId : RemoveItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.RemoveItemCommand

      PS P:csharpaperture> icacls.exe .keystone /reset /T
      processed file: .keystone
      processed file: .keystonesrc
      .keystonesrcKeystone: Access is denied.
      Successfully processed 2 files; Failed processing 1 files


      I don't have read privileges.



      no read privileges



      It can't show the owner:



      no owner



      If I try to change the owner, I don't have permission to view or edit the object:



      enter image description here



      What is really strange is that I created the folder with my user, so I should be the effective owner. I have tried to delete the user as Administrator, but I can't do that either. I can't even delete the folder as NTSystem:



      P:csharpaperturekeystonesrc>whoami /user

      USER INFORMATION
      ----------------

      User Name SID
      =================== ========
      nt authoritysystem S-1-5-18

      P:csharpaperturekeystonesrc>rmdir /S Keystone
      Keystone, Are you sure (Y/N)? Y
      Access is denied.


      nt system authority



      How can I delete this folder that I created?







      windows permissions





      share












      share










      share



      share










      asked 3 mins ago









      mxplusbmxplusb

      1011




      1011






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f959670%2fhow-can-i-delete-an-inaccessible-folder-on-windows-10%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f959670%2fhow-can-i-delete-an-inaccessible-folder-on-windows-10%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...