Delete windows folder on partition

Nycoh

Reputable
Jun 2, 2014
16
0
4,510
Hi! so i have second installation of windows and my d partition and for some reason windows dont even recognize it, i changed the ownership of the folder but still when i try to delete it it says that it need my user permision to delete it, any solution? i cant format the drive.
 
Hit start, in the search box type cmd, when command prompt appears right-click it and select "Run as administrator". Once command prompt is open use the rmdir command to delete the entire directory... so you'll probably want to use the following command (assuming the path is correct):

rmdir /S /Q D:\windows

(you could either use RD or RMDIR, they're exactly the same IIRC) ...Let us know if that doesn't work
 
Are you sure you used the "/S" function? It removes everything in the specified directory, if you don't use /S you'll receive the "Directory is not empty" alert

If so, I would probably try a chkdsk for that drive, open command prompt same as before, and use this command:

CHKDSK D: /F

Or you can do the same disk check by going to start > computer, then right-click on the D: drive, go to properties, then click the Tools tab, and click "Check now" button underneath Error-checking. Make sure "Automatically fix file system errors" is checked before you start the disk check (this is what the /F does in the dos command above)
 
If it wont let you delete system files it could be from the system file attribute associated with certain system files. Try the following command to clear that attribute from all files then try to delete the windows directory:

attrib -S D:\windows\* /S /D
 
attrib -S D:\windows\* /S /D still getting acces denied to everthing
also tried safe mode same thing nothing
i tried everything my last choice is to try format the drive and try to recover the other files....
 
there's 1 way, and it worked for me.

First, right click, go in "Properties", then go to security>>advanced>>auditing (click "continue"), click in "Add" and then select your "account".
After done, click in "change" and change the "owner" to your "account" and be sure to give it all privileges.
After that, go in permissions and delete every "entries" that aren't your selected "account", Let only your "account" in permissions, after doing that, click "apply", just delete the folder normally.
 

TRENDING THREADS