Tip Details Add a Related Tip

Rate as: Positive Negative

Delete all in folder shortcut in Windows

In Windows XP and Vista, there is a registry edit you can make to make deleting all the files in a folder quicker. As it is, if you want to delete all the files in a folder you need to go into the folder, select everything in there, and then delete. With the registry edit, you can get a new option in the contextual menu so that to delete all the files in a folder, you right-click on the folder and select your new command from the menu. Much nicer.

To add this option to the contextual menu, start the registry editor by going to Start > Run and entering regedit

In the left panel, go to HKEY_CLASSES_ROOT + Directory + shell.

With shell selected, right-click and choose New > Key. You'll be asked to name the key. The name of the key is what will show up in your contextual menu, so choose something that makes sense to you. For this example, we'll call it Delete All.

Now right-click on the new Delete All key and select New > Key again, and give the new key the name command.

Now move over to the right pane in the registry editor and double-click on the (Default) line that's over there. This will pop open a window where you can enter Value data for the key. You want to enter this: cmd /c "cd /d %1 && del /s /q *.*

Close the registry editor and you are done. Now when you right-click on a Folder the Delete All (or whatever you called it) command will be shown and you can select it to delete everything in a folder.
Rating: 100% positive, 1 Vote
Categories: Windows shortcut regedit
Added: on Feb 23, 2009 at 6:52 am
Added By: an anonymous user
Searches: delete folder window key shortcut

Comments on this Tip

Add a Comment
Thanks for you'r sharing
I am ruhan from indonesia
– Added by an anonymous user on Apr 27, 2009 at 6:36 am
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Boot with the Num Lock enabled

100% positive, 0 comments
– Tip added by fenni on Mar 17, 2008 at 4:44 pm

Change Manufacturer Properties in Vista

100% positive, 1 comment - last added on Nov 26, 2008 at 3:32 pm
– Tip added by kant on Jun 05, 2008 at 8:14 am

Customize the Vista Bubbles screensaver

100% positive, 1 comment - last added on Sep 27, 2009 at 5:46 am
– Tip added by an anonymous user on Nov 27, 2008 at 1:03 pm

Faster menus in Windows

Categories: windows speed regedit
100% positive, 1 comment - last added on Jun 20, 2009 at 1:41 am
– Tip added by an anonymous user on Jan 26, 2008 at 10:15 am

Edit the number of Vista Start Menu Itms

100% positive, 0 comments
– Tip added by geekalot on May 16, 2008 at 6:37 am

Starting programs minimized in Windows

Categories: windows shortcut
100% positive, 2 comments - last added on Dec 20, 2007 at 7:59 am
– Tip added by geekalot on Dec 18, 2007 at 7:42 am

Shutdown Vista quicker

100% positive, 0 comments
– Tip added by an anonymous user on Nov 05, 2007 at 9:16 am

No to All option in Windows

100% positive, 0 comments
– Tip added by an anonymous user on Feb 02, 2009 at 11:08 am

Customize the Vista Ribbons screensaver

100% positive, 0 comments
– Tip added by an anonymous user on Nov 27, 2008 at 9:11 pm

Type URLs and program names into the Vista taskbar

100% positive, 0 comments
– Tip added by an anonymous user on Sep 08, 2008 at 4:05 pm

Better copy-and-paste

100% positive, 0 comments
– Tip added by an anonymous user on Sep 04, 2008 at 8:47 am

Launch apps and websites quicker

100% positive, 0 comments
– Tip added by an anonymous user on Aug 22, 2008 at 3:03 pm

Get rid of the Windows Mail splash screen

100% positive, 0 comments
– Tip added by an anonymous user on Aug 01, 2008 at 8:19 am

Permanently delete files in Windows

100% positive, 1 comment - last added on Aug 28, 2008 at 12:05 pm
– Tip added by an anonymous user on Jul 23, 2008 at 3:45 pm

Showing all hidden files in Vista

Categories: windows Vista regedit hack
100% positive, 0 comments
– Tip added by an anonymous user on Jun 18, 2008 at 7:44 am

Turn off Vista notification balloons

100% positive, 0 comments
– Tip added by an anonymous user on Jun 16, 2008 at 7:54 am

Require a user name for Vista logins

100% positive, 0 comments
– Tip added by an anonymous user on May 23, 2008 at 6:21 am

Add a "Copy To" option to the right-click menu

Categories: windows regedit hack
100% positive, 0 comments
– Tip added by an anonymous user on Feb 16, 2008 at 5:11 pm

Open icons with a single click in Windows

no ratings, 0 comments
– Tip added by an anonymous user on Jul 24, 2008 at 7:25 am

Enable auto-complete in the windows command prompt

no ratings, 0 comments
– Tip added by fenni on Jan 21, 2008 at 8:40 am