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.

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

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.

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

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
}
}

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

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.

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

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.

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

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

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

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.

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

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.

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

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

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

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.

5 ★ | 2 Vote