How to delete all empty folders, junk folders on Windows 10

In the process of using Windows 10, we cannot avoid having too many empty folders, junk folders on the system. However, we can still delete the empty folder, that junk folder quickly goes away.

Windows 10 operating system is usually operated by a lot of applications and software in parallel, each software often creates separate folders to store separate data for system resources. So, when we install more software on the computer, we will see a lot of small folders, empty folders, junk folders.

This will directly affect the memory, the Windows operation and the more empty folders on Windows 10, the more the system's Search engine will be reduced in performance.

Apart from freezing the computer, there is no way to prevent software from creating empty folders, junk folders, . However, we also have a way to delete all empty folders on the computer. quickly. Empty folders on your computer are folders that do not contain any files or data, so they cannot cause errors on Windows when they are lost. So, please rest assured to delete empty folders, junk folders on Windows 10.

Picture 1 of How to delete all empty folders, junk folders on Windows 10

Deleting empty folders, junk folders on Windows 10 will help you free up a large amount of storage space, making the hard drive capable of faster data retrieval and when you search for something. it is also less confusing and time consuming.

Normally, we will choose to manually delete empty folders, junk folders by visiting every corner in Windows 10, but this is very time consuming. Instead of having to search, we have a much faster way to delete junk folders, empty folders in PowerShell.

1. How to find empty folders on Windows 10

Before you want to delete empty folders, junk folders on Windows 10, we need to use PowerShell to check how many empty folders are in that drive. When we have a list of empty folders, we will proceed to delete them in sequence.

Step 1: Open MenuStart and enter PowerShell to open PowerShell on Windows 10.

Picture 2 of How to delete all empty folders, junk folders on Windows 10

Step 2: When the PowerShell window appears, enter the code below to launch the junk folder search on Windows.

$ SomePath = 'Drive letter' 
Get-ChildItem -Path $ SomePath -Recurse -Directory | ForEach-Object -Process {
if ($ false -eq $ _. GetFileSystemInfos ())
{
$ _. FullName
}
}

Note: PowerShell only supports scanning junk folders on each drive partition on your computer. So, you need to enter the name of the drive partition to be scanned in the Drive Name section.

For example: A software trick that wants to scan empty folders on the E: drive of the computer will enter the following command:

$ SomePath = 'E:' 
Get-ChildItem -Path $ SomePath -Recurse -Directory | ForEach-Object -Process {
if ($ false -eq $ _. GetFileSystemInfos ())
{
$ _. FullName
}
}

Picture 3 of How to delete all empty folders, junk folders on Windows 10

Step 3: After entering the command is complete, press Enter to launch the system and scan for junk folders on Windows. When the scan of empty folders on Windows is completed, you will get a list of empty folders that can be deleted as shown below.

Picture 4 of How to delete all empty folders, junk folders on Windows 10

2. How to delete empty folders on Windows 10

In Part 1, we learned about the list of empty folders, junk folders on Windows 10 and the job is to delete these folders. To delete empty folders on Windows 10, do the following:

Step 1: In the PowerShell window, just check an empty folder on Windows, you proceed to highlight a path and press Ctrl + C to copy.

Note: It is advisable to follow the order in turn from top to bottom or vice versa to avoid confusion.

Picture 5 of How to delete all empty folders, junk folders on Windows 10

Step 2: Then, open MenuStart and enter File Explorer to open the Windows data manager.

Picture 6 of How to delete all empty folders, junk folders on Windows 10

Step 3: Next, click the path bar in File Explorer and press Ctrl + V to paste the path in PowerShell. When you paste the path, press Enter to open it.

Picture 7 of How to delete all empty folders, junk folders on Windows 10

Step 4: So you have opened an empty folder, a junk folder on your computer. Now you press the Back button to return to the folder storage and delete them.

Picture 8 of How to delete all empty folders, junk folders on Windows 10

Step 5: Finally, right-click on the empty folder name and select Delete to delete as usual.

Picture 9 of How to delete all empty folders, junk folders on Windows 10

In this article, TipsMake instructed you how to check and delete empty folders, junk folders on Windows 10. Only with such simple steps you can clean empty folders on Windows 10 quickly. quick!

Good luck.

Update 16 January 2021
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile