By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
10alert.com10alert.com10alert.com
  • Threats
    • WordPress ThreatsDanger
    Threats
    A cyber or cybersecurity threat is a malicious act that seeks to damage data, steal data, or disrupt digital life in general. Cyber threats include…
    Show More
    Top News
    All You Need to Know About APTs
    12 months ago
    Avoid infection by dangerous Onion ransomware aka CTB-Locker
    12 months ago
    How Kaspersky Internet Security protects from ransomware
    12 months ago
    Latest News
    Know your Malware – A Beginner’s Guide to Encoding Techniques Used to Obfuscate Malware
    8 hours ago
    Beware of scammers! Dangerous apps in the App Store
    3 days ago
    How To Limit Login Attempts on WordPress (+ Should You?)
    4 days ago
    Wordfence Intelligence Weekly WordPress Vulnerability Report (September 18, 2023 to September 24, 2023)
    4 days ago
  • Fix
    Fix
    Troubleshooting guide you need when errors, bugs or technical glitches might ruin your digital experience.
    Show More
    Top News
    What’s included in the ‘Battle of Shadow and Light’ update for Halo 5: Guardians
    12 months ago
    How to fix printer spooler problems on Windows 10
    12 months ago
    How to fix error 0x80004005 starting VirtualBox VM on Windows 10
    12 months ago
    Latest News
    How automatically delete unused files from my Downloads folder?
    8 months ago
    Now you can speed up any video in your browser
    8 months ago
    How to restore access to a file after EFS or view it on another computer?
    8 months ago
    18 Proven Tips to Speed Up Your WordPress Site and Improve SEO | 2023 Guide
    9 months ago
  • How To
    How ToShow More
    Xbox celebrates gaming and disability community
    7 hours ago
    A Socket API that works across JavaScript runtimes — announcing a WinterCG spec and Node.js implementation of connect()
    A Socket API that works across JavaScript runtimes — announcing a WinterCG spec and Node.js implementation of connect()
    7 hours ago
    Running Serverless Puppeteer with Workers and Durable Objects
    Running Serverless Puppeteer with Workers and Durable Objects
    7 hours ago
    everything we announced — plus an AI-powered opportunity for startups
    everything we announced — plus an AI-powered opportunity for startups
    7 hours ago
    Easily manage AI crawlers with our new bot categories
    Easily manage AI crawlers with our new bot categories
    1 day ago
  • News
    News
    This category of resources includes the latest technology news and updates, covering a wide range of topics and innovations in the tech industry. From new…
    Show More
    Top News
    Screen Recording with VLC
    12 months ago
    How to delete files immediately in Windows 10?
    12 months ago
    Another Phishing Attack on WhatsApp
    12 months ago
    Latest News
    How to create Copilot desktop shortcut on Windows 11
    16 hours ago
    How to enable extensions for Google Bard AI
    3 days ago
    Window 11 Copilot: 10 Best tips and tricks
    4 days ago
    How to create AI images with Cocreator on Paint for Windows 11
    5 days ago
  • Glossary
  • My Bookmarks
Reading: How to delete large folders (super) fast on Windows 11
Share
Notification Show More
Aa
Aa
10alert.com10alert.com
  • Threats
  • Fix
  • How To
  • News
  • Glossary
  • My Bookmarks
  • Threats
    • WordPress ThreatsDanger
  • Fix
  • How To
  • News
  • Glossary
  • My Bookmarks
Follow US
News

How to delete large folders (super) fast on Windows 11

Tom Grant
Last updated: 22 August
Tom Grant 1 month ago
Share
5 Min Read

When deleting folders with a large number of files on Windows 11, using File Explorer can be a time-consuming process. This is because the system performs calculations and displays the progress update as files and folders are being deleted. As a result, deleting a folder with thousands of files and subfolders can take a long time.

Contents
Delete large folders fast from Command PromptDelete large folders fast from context menu

If you’re trying to delete folders with many files, you can speed up the process to only a few seconds using commands. The only caveat is that you need to be comfortable using Command Prompt.

This guide will teach you the fastest method to delete large folders through Command Prompt and the instructions to add an option on the right-click context menu to automate the process.

  • Delete large folders fast from Command Prompt
  • Delete large folders fast from context menu

Warning: Specifying the wrong path may delete files in the wrong location, so use these instructions carefully. Also, it’s important to mention that modifying the Registry can cause serious problems if not used properly. It’s assumed you know what you’re doing and created a full backup of your system before proceeding. You have been warned.

Delete large folders fast from Command Prompt

To delete large folders on Windows 11 quickly, use these steps:

  1. Open Start on Windows 11.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to navigate to the folder to delete and press Enter:

    %USERPROFILE%pathtofolder

    In the command, update the path to the folder you have to delete.

  4. Type the following command to delete the files in that folder without showing the output and press Enter:

    del /f/q/s *.*> nul

    In the command, the /f option forces the deletion of read-only files. The /q option enables quiet mode. The /s option executes the command for all files inside the folder you’re trying to remove. Using *.* tells the del command to remove every file and > nul disables the console output, improving the deletion performance.

  5. Type the following command to back up one level in the folder path and press Enter:

    cd..
  6. Type the following command to delete the folder and all its subfolders, and press Enter:

    rmdir /q/s FOLDER-NAME

    In the command, the /q switch enables quiet mode, the /s option to run the command on all the folders, and “FOLDER-NAME” is the variable to specify to delete a specific folder.

Once you complete the steps, all the files and folders in the location will be deleted quickly from the computer.

Delete large folders fast from context menu

Alternatively, to delete larger folders even faster, it’s possible to create a script and modify the Registry to add a new entry in the right-click context menu to delete folders with a lot of files quickly.

To delete large folders quickly from the right-click context menu on Windows 11, use these steps:

  1. Open Start.

  2. Search for Notepad, right-click the top result, and choose the Run as administrator option.

  3. Copy and paste the following lines into the Notepad text file:

    @ECHO OFF
    ECHO Delete Folder: %CD%?
    PAUSE
    SET FOLDER=%CD%
    CD /
    DEL /F/Q/S "%FOLDER%"> NUL
    RMDIR /Q/S "%FOLDER%"
    EXIT
  4. Click on File.

  5. Select the Save As option.

  6. Browse to the following path: C:Windows

  7. Save the file as quick_delete.bat, and ensure it uses the “.bat” extension. 

  8. Open Start.

  9. Search for regedit and click the top result to open the app.

  10. Browse the following path:

    HKEY_CLASSES_ROOTDirectoryshell
  11. Right-click the Shell (folder) key, select New, and click on Key.

  12. Name the key Fast Delete and press Enter.

  13. Right-click the newly created key, select New, and click on Key.

  14. Name the key command and press Enter.

  15. Double-click the command key default String on the right side.

  16. Change the value of the key with the following line.

    cmd /c "cd %1 && quick_delete.bat"
  17. Click the OK button

After you complete the steps, you can “Shift + right-click” a large folder and select the “Fast Delete” option from the legacy context menu to remove it from the system.

When using this method, the system will show a prompt to prevent accidental deletion. You can always proceed by pressing any key, using the “Ctrl + C” keyboard shortcut, or clicking the “X” button to cancel the operation.


Source: Pureinfotech

Translate this article

TAGGED: Windows
Tom Grant August 22, 2023 August 22, 2023
Share This Article
Facebook Twitter Reddit Telegram Email Copy Link Print

STAY CONECTED

24.8k Followers Like
253.9k Followers Follow
33.7k Subscribers Subscribe
124.8k Members Follow

LAST 10 ALERT

Xbox celebrates gaming and disability community
Windows 7 hours ago
A Socket API that works across JavaScript runtimes — announcing a WinterCG spec and Node.js implementation of connect()
A Socket API that works across JavaScript runtimes — announcing a WinterCG spec and Node.js implementation of connect()
Apps 7 hours ago
Running Serverless Puppeteer with Workers and Durable Objects
Running Serverless Puppeteer with Workers and Durable Objects
Apps 7 hours ago
everything we announced — plus an AI-powered opportunity for startups
everything we announced — plus an AI-powered opportunity for startups
Apps 7 hours ago
Know your Malware – A Beginner’s Guide to Encoding Techniques Used to Obfuscate Malware
Know your Malware – A Beginner’s Guide to Encoding Techniques Used to Obfuscate Malware
Wordpress Threats 11 hours ago

You Might Also Like

Windows

Xbox celebrates gaming and disability community

7 hours ago
News

How to create Copilot desktop shortcut on Windows 11

19 hours ago
News

How to enable extensions for Google Bard AI

3 days ago
News

Window 11 Copilot: 10 Best tips and tricks

4 days ago
Show More

Related stories

How to install September 2023 update with 23H2 features for Windows 11
How to upgrade to Windows 11 23H2 with Installation Assistant
How to get the latest Windows 11 innovations
How to blur image background in Photos for Windows 11
How to download official Windows 11 23H2 ISO file
PHP Object Injection Vulnerability in Flatsome Theme

10 New Stories

How to create Copilot desktop shortcut on Windows 11
Easily manage AI crawlers with our new bot categories
Cloudflare is free of CAPTCHAs; Turnstile is free for everyone
Post-quantum cryptography goes GA
Detecting zero-days before zero-day
See what threats are lurking in your Office 365 with Cloudflare Email Retro Scan
Previous Next
Hot News
Xbox celebrates gaming and disability community
A Socket API that works across JavaScript runtimes — announcing a WinterCG spec and Node.js implementation of connect()
Running Serverless Puppeteer with Workers and Durable Objects
everything we announced — plus an AI-powered opportunity for startups
Know your Malware – A Beginner’s Guide to Encoding Techniques Used to Obfuscate Malware
10alert.com10alert.com
Follow US
© 10 Alert Network. All Rights Reserved.
  • Privacy Policy
  • Contact
  • Customize Interests
  • My Bookmarks
  • Glossary
Go to mobile version
adbanner
AdBlock Detected
Our site is an advertising supported site. Please whitelist to support our site.
Okay, I'll Whitelist
Welcome Back!

Sign in to your account

Lost your password?