Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Partition or Volume - Delete

18 Apr 2010   #30
wahbufetz

Windows 7 Home Edition
 
 

Thanks anyways sir...

But then i found the answer somewhere in google, and uhm wanna share in here...

If u wanna delete files without the annoying Security ... the Take Ownership file option must be done... simply make this registry command using notepad and save as "Ownership.reg" with the quotes... Then Run.

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"


Just right click the folder and hit Take Ownership... Ur now ready to delete it.

Thanks for the site whom i read this. Sorry i didn't take note of that...


My System SpecsSystem Spec
.
19 Apr 2010   #31
Brink

64-bit Windows 10 Pro
 
 

Wahbufetz,

I'm happy to hear that you got it sorted.

Yep, that would be close to what we have in our Take Ownership context menu shortcut, but not quite as thorough.

Take Ownership Shortcut

Code:
 
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\takeownership]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""
 
[HKEY_CLASSES_ROOT\*\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
 
[HKEY_CLASSES_ROOT\exefile\shell\takeownership]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""
 
[HKEY_CLASSES_ROOT\exefile\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
 
[HKEY_CLASSES_ROOT\dllfile\shell\takeownership]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""
 
[HKEY_CLASSES_ROOT\dllfile\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
 
[HKEY_CLASSES_ROOT\Directory\shell\takeownership]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""
 
[HKEY_CLASSES_ROOT\Directory\shell\takeownership\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
My System SpecsSystem Spec
20 Apr 2010   #32
wahbufetz

Windows 7 Home Edition
 
 

Thanx Sir Brink... God Bless....
My System SpecsSystem Spec
20 Apr 2010   #33
celldweller1591

Windows 7 + Windows Xp Pro + Ubuntu 10.04 + openSUSE 11.2
 
 

I prefer Gparted for doing any job with my partitions !
My System SpecsSystem Spec
.

20 Apr 2010   #34
Jonathan_King

Windows 7 Professional x64
 
 

Quote   Quote: Originally Posted by celldweller1591 View Post
I prefer Gparted for doing any job with my partitions !
That's okay, but for a quick partition delete, you can't beat the convenience of the built-in partition editor!
My System SpecsSystem Spec
29 Apr 2010   #35
DBDx316

Windows 7
 
 

Hi,

I deleted the 2nd partition I had with XP and expanded the normal drive I have with Windows 7 to take back the extra space. It is still having me chose between Windows 7 and XP when I boot up the computer. How do I correct this so I don't have to chose between 7 and an OS that isn't even on my computer anymore?

Thank you,
Dave
My System SpecsSystem Spec
29 Apr 2010   #36
Brink

64-bit Windows 10 Pro
 
 

Hello Dave,

Since you removed XP, you can delete the XP entry in the Windows Boot Manager, then uncheck the Time to Display the List of Operating Systems at Boot box to not have the Windows Boot Manager at boot anymore.

Hope this helps,
Shawn
My System SpecsSystem Spec
30 Apr 2010   #37
wahbufetz

Windows 7 Home Edition
 
 

Try this one folk...


Open CMD using Run ( Command Prompt)

Then type in

"bcdedit /enum" without the quotes to list up the boot configuration data store

then after it displays the list of boots configs, identify the name to what you're going to delete...

example

vrenwuh35h34534545kkgf

or

Current


type in:
bcdedit /delete [name]

where name is the name value and hit enter




.... That's it. Try rebooting to confirm...


(Bad English... Sorry)
My System SpecsSystem Spec
03 Jun 2010   #38
efuzone

Windows 7
 
 
Windows 7 Partition Deleting Problem

Hello Friends,

I found this forum very usefull. I am facing one problem in windows 7, I have 13gb in my C drive where windows 7 is installed but its completly full now i have another partition D: there i have more 13gb its completly free space i tried to go to disk management and then delet the partition D: its showing green label and showing free space but when i am trying to delet it again to make it unallocation but delet partition option is disabled and i cant delet the partition so how i should extend the C:...

I have also tried partition wizard but and tried to merge from there but not sucessfull it says some files are in used in C: please restart retry or cancel the operation i did restart it starts operation before win start but not succesfull also please help
My System SpecsSystem Spec
03 Jun 2010   #39
Jonathan_King

Windows 7 Professional x64
 
 

Welcome to SF!

Could you please post a screenshot of your Disk Management window?

A Preferred Method of Uploading/Posting Screen Shots
My System SpecsSystem Spec
Reply

 Partition or Volume - Delete




Thread Tools




Similar help and support threads
Thread Forum
Accidentally delete volume and Wrong Use in Minitool Partition Wizard
Sorry for my bad english. I accidentally deleted volume disk in storage management (i'm using windows 7 Home). It's my primary storage, I saved everything in that partition. I'm looking for solution, and I found this thread ...
Backup and Restore
Cannot delete volume in disk management. The partition is in use...
I am trying to clean up a messy disk configuration by deleting two volumes from a disk and then extending the C: drive to occupy the entire disk. I have deleted the first volume successfully but when I try to delete Vol E I get the error message that "The partition Vol E (E:) Simple Volume is...
Performance & Maintenance
Delete a LOGICAL PARTITION to increase volume of C drive.
My hard disk was partitioned into 1 primary partition and 4 logical partitions. I want to delete one of the logical partition to increase the volume of C drive. Is it possible??? Please help me out.
Performance & Maintenance
Clicked Delete Volume on wrong partition in Disk Management
Hi, I've an external drive that has two partitions. I wanted to merge them and Clicked Delete Volume on Windows 7 Disk Management......but on the wrong partition. There's no undo feature :-( I've seen this but understand it only works on Windows 2000 and XP. How To Recover an Accidentally...
Performance & Maintenance
Cannot delete volume!
Okay, so I wanted to dual boot two operating systems so I shrunk my main partition in half but didn't format the new partition. Now, I want to delete it or format it but it doesn't work, instead gives me this annoying error message "The system cannot find the file specified". How can it not find...
Performance & Maintenance
Can not create a Simple Volume, or Delete the Partition
I was formatting my 30 Gig partition on my 1TB hard drive. I deleted the partition and was going to split it further, but when i deleted it it stored as free space rather then Unallocated. now whenever I try to create a simple colume or delete the partition it gives the error message "There is not...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:59.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App