Windows 8 and 8.1 Forums


Folder - Delete Folder Content Context Menu

  1. #1
    Folder - Delete Folder Content Context Menu

    Folder - Delete Folder Content Context Menu
    Add "Delete Files in Folder" and "Empty Folder" to Context Menu of Folders in Windows
    Published by Brink is offline
    07 Feb 2014
    Default Folder - Delete Folder Content Context Menu

    Published by


    Brink's Avatar
    Administrator

    Join Date: Jul 2009
    Posts: 21,939

    Add "Delete Files in Folder" and "Empty Folder" to Context Menu of Folders in Windows


    information   Information
    This tutorial will show you how to add or remove "Delete Files in Folder" and "Empty Folder" to the context menu of folders for all users in Vista, Windows 7, and Windows 8.

    While you must be signed in as an administrator to add or remove the context menus, all users will be able to use it.

    Note   Note
    The context menus will only be able to delete what the user has access permission for in a folder.

    Delete Files in Folder = This will instantly permanently delete only the files in the folder you right click on folder, and will not delete any subfolders or files in subfolders.

    Empty Folder = This will instantly permanently delete everything (files, subfolders, files in subfolders) in the folder you right click on by deleting and recreating the folder you right click on.


    When you click on either Delete Files in Folder or Empty Folder, a command prompt will open asking Are you sure? [Y/N] to confirm the action to help avoid deleting the contents of a folder by mistake.


    EXAMPLE: "Delete Files in Folder" and "Empty Folder" context menus and confirmations

    Name:  Empty_Folder_Context_Menu.png
Views: 4775
Size:  14.1 KB

    Click image for larger version

    Click image for larger version





    Here's How:

    1. Do step 2 or 3 below for what you would like to do.

    2. Add "Delete Files in Folder" and "Empty Folder" to Context Menu

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Add_Delete_Empty_Folder_Context_Menus.reg


    download

    3. Remove "Delete Files in Folder" and "Empty Folder" from Context Menu
    NOTE: This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Remove_Delete_Empty_Folder_Context_Menus.reg


    download

    4. Save the .reg file to your desktop.

    5. Double click/tap on the downloaded .reg file to merge it.

    6. If prompted, click/tap on Run, Yes (UAC-Windows 7/8) or Continue (UAC-Vista), Yes, and OK to approve the merge.

    7. You can now delete the downloaded .reg file if you like.



    That's it,
    Shawn


  2. #1


    Posts : 21,939
    64-bit Windows 10


    Tutorial updated with a better Y/N confirmation option to better help avoid mistakes.

      My System SpecsSystem Spec

  3. #2


    Posts : 2
    Windows 8.1


    Thank you!

    Could you please create non-confirmation versions
      My System SpecsSystem Spec

  4. #3


    Posts : 1,720
    Windows 8.1 Pro


    Quote Originally Posted by DoctorJellybean View Post
    Thank you!

    Could you please create non-confirmation versions
    Run the 'Remove...' reg file, create a copy of the 'Add...' reg file, just in case; right click and choose Edit then remove:

    & (cmd /c echo. & choice /c:yn /m "Are you sure?")

    from the string, ONLY that!

    Then re-merge the modified file.
      My System SpecsSystem Spec


  5. #4


    Posts : 2
    Windows 8.1


    That appears to work, thank you!
      My System SpecsSystem Spec

  6. #5


    Posts : 2
    windows 10


    it's a great context menu add-on. worked like a charm.
    however, i'd ask if it would be possible to apply a similar reg addition to delete only the sub-folders keeping all other files intact within a folder ?
    I tried to replace /a at the end of the delete files in folder line with /f , saving as a new .reg file named Add_Delete_Folders_only ,yet it didn't work at all.
    thanks for any help.
      My System SpecsSystem Spec

  7. #6


    Posts : 21,939
    64-bit Windows 10


    Hello kvari, and welcome to Eight Forums.

    If you like, you could remove the "/q" switch from the "Delete Files in Folder" command to have it prompt Y/N for each item. This way you could only delete the items you want in the folder.
      My System SpecsSystem Spec

  8. #7


    Posts : 2
    windows 10


    thanks for your swift reply, Brink.
    can we exclude files of specific extensions such as . txt, .cfg etc from this deletion scheme instead of a series of Y/N checks ? I actually use your wonderful reg without Y/N confirmation.
      My System SpecsSystem Spec

  9. #8


    Posts : 21,939
    64-bit Windows 10


    I'm not exactly sure about how to do so, but you may be able to use the "Forfiles" command along with this to do so. You might see if this below may help some.

    https://technet.microsoft.com/en-us/.../cc753551.aspx
      My System SpecsSystem Spec

Folder - Delete Folder Content Context Menu

Similar Threads
Tutorial Forum
Need to delete content in unreachable folder
Hi, I was trying to recover some lost files with recovery software, I came across something unpleasant - my partitions contain 'Found' folder that contains 'Found.NNNN' N for numbers, folders that contain files previously deleted with their filenames also remaining. I want these files cleared,...
General Support
zip compressed folder missing in context menu
I have uninstalled windrar and now want to use default windows 8 zip facility. When I am right clicking on a folder and go to "send to" then I am not seeing "compressed zip folder" option. I have few files which are already in zip format, When I am righ clicking on that and select "open with"...
General Support
How can I add 'Any Folder' to the windows context menu
When I used windows XP Microsoft made available some very useful tweaks called 'Powertoys'. One of those tweaks was called 'Send To'. This added 'Any Folder' to the right click context menu which allowed you to browse to the exact location you wanted to copy or move a file or folder to. For...
Customization
Delete content in the /windowsapps/deleted folder
How do you delete the content of the C:/program files/windowsapps/deleted folder?
Software and Apps
Lost the content of a folder in documents for no reason at
I just attached my Micromax canvas smartphone to my windows 8 laptop to transfer some of my pics.I copied the pics and then looked for an appropriate folder in Documents to paste those pics.I found a folder named My Pics which already had some of my pics.I created a new folder inside it and then...
General Support
Folder wont load its content.
hi, i dj and i have a folder with all my remixes, its not something that i can find in the internet, i made them, i can find only a few that are uploaded there too. Anyway, whenever i open this folder, the mp3 wont load, the green line above takes forever to load and sometimes windows explorer...
General Support
Windows Defender context menu - scan file(s)/folder(s)?
In reference to this thread here: http://www.eightforums.com/tutorials/8450-windows-defender-cascading-desktop-context-menu-create-windows-8-a.html Is there a way to get a context menu to scan individual files and/or folders like MSE does in Windows 7 and prior?
System Security

Eight Forums Android App Eight Forums IOS App Follow us on Facebook