Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Unable to delete folder windows 10

Bomdur
 Share

I've been trying to delete a corrupt folder without any luck. I've tried using CMD with the command del /f /q /a *directory*, safe mode, shift + del, without any luck. Anyone knows how can i solved this? This folder was from an old proyect made by unity, nothing "weird"

Link to comment
Share on other sites

Link to post
Share on other sites

Try

rmdir /s "folder path"

with "folder path" being the full path of the directory you want to remove. Keep the quotes if any of your path contains spaces.

Primary Gaming Rig:

AMD Ryzen 5 5600 3.6 GHz 6-Core CPU, Gigabyte B450 I AORUS PRO WIFI mITX AM4 Motherboard, PNY XLR8 16 GB (2 x 8 GB) DDR4-3200 CL16 Memory, Mushkin PILOT 500 GB NVME SSD (boot), Corsair Force Series 3 480GB 2.5" Solid State Drive, XFX Radeon RX 5700 8 GB GPU, Fractal Design Node 202 HTPC Case, Corsair SF 450 W 80+ Gold Fully Modular SFX PSU, Windows 10 Pro, Dell S2719DGF 27.0" 2560x1440 155 Hz Monitor, Corsair K68 RGB Wired Gaming Keyboard (MX Brown), Logitech G900 CHAOS SPECTRUM Wireless Mouse, Logitech G533 Headset

 

HTPC/Gaming Rig:

AMD Ryzen 7 3700X 3.6 GHz 8-Core CPU, ASRock B450M Pro4 mATX AM4 Motherboard, ADATA XPG GAMMIX D20 16 GB (2 x 8 GB) DDR4-3200 CL16 Memory, Mushkin PILOT 1TB NVME SSD (boot), 2x Seagate BarraCuda 1 TB 3.5" HDD, PowerColor Radeon RX VEGA 56 8 GB GPU, Fractal Design Node 804 MicroATX Mid Tower Case, Cooler Master MasterWatt 550 W 80+ Bronze Semi-modular ATX PSU, Silverstone SST-SOB02 Blu-Ray/DVD/CD Writer, Windows 10 Pro, Logitech K400 Plus Wireless Mini Keyboard w/ Touchpad, Corsair K63 Lapboard Combo (MX Red w/Blue LED) Wireless Gaming Keyboard, Logitech G603 Wireless Mouse, Kingston HyperX Cloud Stinger Headset, HAUPPAUGE WinTV-quadHD TV Tuner, Samsung 65RU9000 TV

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, Kid.Lazer said:

Try

rmdir /s "folder path"

with "folder path" being the full path of the directory you want to remove (without quotes).

It said that the directory wasn't empty but nothing happen

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Bomdur said:

It said that the directory wasn't empty but nothing happen

That's because you want to use rmdir with a /S not /s. Try:
 

rmdir /S "folder path"

It should ask you Yes or No if you would really like to delete the directory. If you don't want it to ask, use the /Q tag.

"Although there's a problem on the horizon; there's no horizon." - K-2SO

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, dj_ripcord said:

That's because you want to use rmdir with a /S not /s. Try:
 

rmdir /S "folder path"

It should ask you Yes or No if you would really like to delete the directory. If you don't want it to ask, use the /Q tag.

Same problem as before: "The Directory is not empty"

Sin título.png

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Bomdur said:

Same problem as before: "The Directory is not empty"

 

Alright, I researched and it seems I was wrong about the /S /s thing. Doesn't matter which you use.

Ttry deleting everything in the directory first.

del /f /s /q folder_path 
rmdir /s /q folder_path

I would like to mention that I found this answer on a Stack Overflow post. But users are saying that this command actually doesn't work if the files are corrupt. So you might wanna run chkdsk.

"Although there's a problem on the horizon; there's no horizon." - K-2SO

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, dj_ripcord said:

Alright, I researched and it seems I was wrong about the /S /s thing. Doesn't matter which you use.

Ttry deleting everything in the directory first.

del /f /s /q folder_path 
rmdir /s /q folder_path

 

Even if i try to delete from a previous folder, same thing keeps happening.
The first one reads: "The file or Directory is damage or can't be read"
Now that i check the folder went back to "Read only" (I've tick that off before), and now even if i press "Apply" it keeps turning back on

 

image.thumb.png.ec25c9d3a04e5dec155a18aff286201b.png

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Bomdur said:

Now that i check the folder went back to "Read only" (I've tick that off before), and now even if i press "Apply" it keeps turning back on

Sounds to me like there is another application that is turning it to Read Only.  You will either need to manually end the process that's doing it, or uninstall it. It's quite likely that the application in which you're trying to delete the folder of, is the culprit.

"Although there's a problem on the horizon; there's no horizon." - K-2SO

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×