Jump to content

Clean Up Your Drives with a Quick Command in Windows 10 Version 1903


The AchieVer

Recommended Posts

The AchieVer

Clean Up Your Drives with a Quick Command in Windows 10 Version 1903 

Windows 10 features new storage tools that help users automatically clean up their drives when they are running low on storage.

 

Windows 10 features new storage tools that help users automatically clean up their drives when they are running low on storage.

Storage Sense, a feature that originally debuted on Windows Phone, is available on Windows 10 PCs too, and it helps delete data like temporary files, content in Recycle Bin, and other unnecessary data automatically.

Furthermore, Storage Sense can take care of the available storage automatically, so whenever a certain threshold is reached, it can kick in and remove the files you no longer need on its own.

If you want to try out Storage Sense yourselves, launch the Settings app and head over to the following location:

Settings > System > Storage

But just like the previous Windows 10 versions, the upcoming version 1903 will also include Disk Cleanup, the famous tool that also lets you clean up your drives. Microsoft will deprecate this Windows utility, but in Windows 10 version 1903 you can still use it not only manually, but also in more complex scripts to delete data you no longer need.

Basically, you can launch Disk Cleanup in several ways, and the easiest is this one:

File Explorer > right-click desired drive > Properties > General > Disk Cleanup

You can also click the Start menu, type Disk Cleanup and hit enter. You’ll be prompted to choose the drive you want to clean before getting to the same screen as in the case of the method described above.

Disk Cleanup can delete downloaded program files, temporary Internet files, delivery optimization data, Windows error reports, previous Windows installation, and so much more.

And in addition to the methods described above, you can also launch Disk Cleanup and quickly remove this data from the command line.

First of all, you need to launch an elevated Command Prompt window (this is an instance of the app with administrator rights). To do this, type cmd.exe in the Start menu > right-click Command Prompt > Run as administrator.
 
Running Disk Cleanup with the /verylowdisk parameter
 
 


The standard command to launch Disk Cleanup for a specific drive is the following:

cleanmgr.exe /d driveletter

Obviously, you need to change the driveletter tag with the drive you want to clean. For example, for the 😄 drive the command should look like this:

cleanmgr.exe /d 😄

There are additional parameters that you can use to enhance the process. For example, the aforementioned command fires up the Disk Cleanup interface and lets you choose what to clean, but if you want to have all boxes checked by default and delete everything, the command should look like this:

cleanmgr.exe /lowdisk /d driveletter

On the other hand, if you want to configure Disk Cleanup for specific settings and choose what to clean every time, you must first use the /sageset parameter to create your configuration. So the command should look like this:

cleanmgr.exe /sageset:1

The number at the end of the parameter indicates the configuration profile. Make your changes and then close the window. To launch Disk Cleanup and remove the files you previously configured with /sageset, the command should look like this (make sure you use the correct number):

cleanmgr.exe /sagerun:1

At the same time, you can just run Disk Cleanup with even seeing the user interface. In this case, you’ll have to turn to the /verylowdisk parameter, which fires up Disk Cleanup and removes all unnecessary data without any further prompt:

cleanmgr.exe /verylowdisk /d driveletter

When the process comes to an end, Disk Cleanup should display a summary of the cleaning process, displaying the amount of free data on your drive after the process came to an end.

 

 

Source

Link to comment
Share on other sites


  • Views 751
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...