On my machine I have two HDDs and in both I have a Windows 8 x64 installed. I booted from one of them and tryed to delete the contents of the other one (D:Windows for example), but Windows 8 don’t let me go on, for example, I tried to delete %ProgramFiles%/WindowsApps (hiden folder) and the folowing message was poped to me:
In this case I can’t even open and read the folder content.
How could I delete the contents of this disk without having to reformat or even without having to boot a Linux on this machine?
If you’re an admin, you can just use this registry tweak to “Take Ownership” of the files (recursively) and delete what you do not want. But if you run any programs off there, it will probably cause some permissions issues (assuming you have any thing you care of on there).
It says it works for Windows 8.
Many times you need to take ownership of a file or folder in Windows. For example, when you want to customize Windows UI and need to replace existing system files with a new one.
You have to follow no. of steps to take ownership and grant yourself full permission to access the file or folder. But now you can do it in a single step.
If you log on to an account with administrator priv, you should be able to select the directory ( or directories), view their properties from Windows Explorer, and from their under the security tab change the ownership and permissions to allow full access.
You might be able to do this via the windows recovery environment (WinRE). It might not work though as rights could be preserved there too.
You might be able to take ownership too:
Use with caution
To do this go to Modern UI settings, general. At the bottom choose restart.
From there, choose troubleshoot then advanced, choose the command prompt option.
Log in with your normal username
list vol to get a list of your hard drives. VERY CAREFULLY work out which is the one you want to delete the contents of.
exit to leave
<drive letter>: for example
dir /p to list files/folders so you can check the contents to convince yourself this is the right drive.
When you are double sure type
If you need to delete any Windows file/folder (ntfs/fat) and have problems with “permissions” or “file is in use” … use a Linux Live CD.
Virus, system file… anything can be deleted this way.