Jump to content

Unable to delete folder windows 10

Bomdur

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:

Ryzen 5 5600 CPU, Gigabyte B450 I AORUS PRO WIFI mITX motherboard, PNY XLR8 16GB (2x8GB) DDR4-3200 CL16 RAM, Mushkin PILOT 500GB SSD (boot), Corsair Force 3 480GB SSD (games), XFX RX 5700 8GB GPU, Fractal Design Node 202 HTPC Case, Corsair SF 450 W 80+ Gold SFX PSU, Windows 11 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:

Ryzen 7 3700X CPU, ASRock B450M Pro4 mATX Motherboard, ADATA XPG GAMMIX D20 16GB (2x8GB) DDR4-3200 CL16 RAM, Mushkin PILOT 1TB SSD (boot), 2x Seagate BarraCuda 1 TB 3.5" HDD (data), Seagate BarraCuda 4 TB 3.5" HDD (DVR), PowerColor RX VEGA 56 8GB GPU, Fractal Design Node 804 mATX Case, Cooler Master MasterWatt 550 W 80+ Bronze Semi-modular ATX PSU, Silverstone SST-SOB02 Blu-Ray Writer, Windows 11 Pro, Logitech K400 Plus Keyboard, Corsair K63 Lapboard Combo (MX Red w/Blue LED), 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

×