Created a folder now I can't delete it?


  1. Posts : 46
    Windows 10 Pro
       #1

    Created a folder now I can't delete it?


    I have a brand new computer, I just finished it in the last couple weeks if it makes any difference here's the basic hardware: Asus Prime X570-Pro motherboard, Ryzen 3950X, 32gb Corsair Ram, 2tb Samsung M.2 boot drive with Windows 10 pro, 4tb Samsung Evo data drive I:, 6tb Westen Digital Black data drive K:, Corsair 115i RGB Pro cpu cooler.

    It's been working fine and overall I'm incredibly happy with it as it's a major improvement from my last computer but today I created a temporary directory in a directory that's several levels deep on the I: drive I:\<DirA>\<DirB>\<DirC>\<DirD> DirD being the directory I created for a temporary purpose and now that I'm finished with it I can't seem to delete it. When I first deleted it using shift-delete and answered the dialog "Are you sue you want to permanently delete this folder?" Windows 10 didn't complain or anything but the folder continued to appear in File Explorer and if I attempted to delete it again I get the message "Could not find this item" "This is no longer located in I:\<DirA>\<DirB>\<DirC> verify the items location and try again". If I navigate up a level or two and then down again it's still there and if I try and delete it Windows doesn't complain but afterwards it's still there.

    Just for the heck of it I also scanned with Malwarebytes and Eset Internet Security 13.1.21.0 since when I Google on this some people seem to automatically suggest a malware or virus problem but neither detected anything.

    I've tried rebooting, I've tried using chkdsk /f from an admin command prompt and chkdsk claims no problems were found with the disc but no matter what I still can't delete this folder and it's really bugging me that I can't get rid of it; does anyone have any idea's what the problem is here and how I fix it?
      My Computer


  2. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #2

    Try navigating to it from a Command Prompt, see if it's actually there or not.
      My Computers


  3. Posts : 46
    Windows 10 Pro
    Thread Starter
       #3

    Ztruker said:
    Try navigating to it from a Command Prompt, see if it's actually there or not.
    Just tried that and "Dir" shows that it's there in a command prompt.
      My Computer


  4. Posts : 565
    Windows 10 Professional 64-bit
       #4

    Can you click on it and see if there any files inside the folder? If so then can you click on any files in it?
      My Computers


  5. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #5

    NormAtHome said:
    Just tried that and "Dir" shows that it's there in a command prompt.
    You could try the rd command, just be careful:

    >rd /?
    Removes (deletes) a directory.

    RMDIR [/S] [/Q] [drive:]path
    RD [/S] [/Q] [drive:]path

    /S Removes all directories and files in the specified directory
    in addition to the directory itself. Used to remove a directory
    tree.

    /Q Quiet mode, do not ask if ok to remove a directory tree with /S
      My Computers


  6. Posts : 46
    Windows 10 Pro
    Thread Starter
       #6

    wiganken said:
    Can you click on it and see if there any files inside the folder? If so then can you click on any files in it?
    There are no files inside the folder.

    - - - Updated - - -

    Ztruker said:
    You could try the rd command, just be careful:
    In a administrator level command prompt in the directory that contains the unremovable directory "rd /s ." and saying "yes" to the question "Are you sure (Y/N)?" I get a message ".\<Dir name that can't be removed> - The system cannot find the file specified." and "The process cannot access the file because it is being used by another process.". Tried "RMDIR /S .\*.*" and after answering Yes got the message "The filename, directory name, or volume label syntax is incorrect.".
      My Computer


  7. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    Norm,

    You can use this procedure - my ditty about using RoboCopy to clear out a rogue file - TenForums

    In your case, you'll be clearing out all files & subfolders from I:\DirA\DirB\DirC so move anything you want to keep out of DirC to somewhere safe or it will be lost.

    Denis
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:05.
Find Us




Windows 10 Forums