Share via

Folder name has a space and I can't delete the folder

Anonymous
2024-07-04T14:22:36+00:00

I have a folder that I want to delete from my PC but the computer says it can't find the folder and when i tried to delete such folder using the SHIFT+DELETE, didn't work, using CMD command I can't force the delete due to having a space, please help! I don't know what else Ican try
ps: I already deleted every file on the folder the problem is the folder itself.

Windows for home | Windows 11 | 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. Les Ferch 10,326 Reputation points Volunteer Moderator
    2024-07-07T04:51:48+00:00

    Try this:

    1. Shift-right-click the folder name in Explorer and select Copy as path.
    2. Open a Cmd window (-R cmd).
    3. Enter *rd /s /q \?* and then right-click to paste in the copied path. The result should look something like this:

    rd /s /q \?"C:\some folder" 4. Press Enter to delete the folder.

    Note: In Windows 11, Copy as path is also available with just a right-click (i.e. shift not needed).

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

1 additional answer

Sort by: Most helpful
  1. Sakiko 38,790 Reputation points Independent Advisor
    2024-07-04T14:55:40+00:00

    Hello, I'm here to help.

    Please try including the path in double quotes [""] on the command line, does this work?

    Please feel free to reply. This is not a live chat channel and I may be in a different time zone than you. As a result, replies may be delayed and I may respond minutes to hours later.

    0 comments No comments