What is the winsxs folder for. WinSxS what is this Windows folder, how to clean it? Removing components on demand

Many users are perceived almost as a standard of "fluidity" and a tendency to gradually litter with unnecessary files. Unfortunately, there is some truth in such beliefs.

That is why the popularity of various kinds of optimization programs, which allow keeping the livestock of this garbage under relative control, does not decrease in any way. But some users have little of their functionality, and therefore they decide to take matters into their own hands. The results can be disastrous.

For example, they often delete the WinSxS directory. What kind of folder is this, why deleting it can affect the performance of your system in a far from the best way? Let's find the answer to this question in our article.

What it is?

To understand why it is so important, it would be a good idea to first figure out its purpose. First you need to go back a little, telling about the history of Windows OS. The fact is that the release of the notorious Windows XP became a truly significant event: the line of 9x-systems was completely closed, after which NT-varieties became the main ones.

But the problem is that many of the functions that were in demand in older versions are needed for one reason or another in new systems. As a rule, this is due to compatibility issues, for which old bugs from older versions were carefully transferred to the same Internet Explorer.

So, the WinSxS directory has become a repository of such ancient elements. What is this folder? Is it just a systemic "dump"? No, it's not that simple.

Modifying Description Files

When Windows Vista came out, there were profound changes in the core of the system that did not appear in any way outwardly. So, earlier all the components were described by INF files, whereas in Vista the practice “binary file + XML” was first introduced. This bundle contains almost everything from registry keys to system settings.

All these bundles are stored in WinSxS. What kind of folder is this, in simpler terms? It can be called an important system store, which contains all the information about the system. In fact, this directory is an OS in miniature. Now it is clear what the consequences will be caused by its removal?

Most often, after such a barbaric step, the system will not work at all. And if by some miracle some part of its functions is preserved, then it will still be impossible to fully work on it.

Can it be cleaned?

Oddly enough, but such an operation is quite acceptable. Over time, the size of this folder begins to grow rapidly. This is due to the fact that new connections arise between system components, and some of them are already outdated.

Do not forget that the system is constantly changing and improving: for example, when you install updates, not only new, but also old versions of system files appear in the folder. This is done to enable rollback to the old system view.

Simply put, as a result of maintenance and customization, the volume of this directory will continually grow until one day it exceeds all reasonable limits. But before cleaning WinSxS, there are a few simple rules to remember.

Firstly, only system utilities from Microsoft itself should be used for its "sanitation". Secondly, manual change of its components is unacceptable, since the consequences of such "creativity" will be unpredictable. Thirdly, if you do not understand the meaning of this cleaning, and the size allows, it is better to completely abandon such an idea. You will definitely not increase the performance, but you can earn problems in abundance.

How is cleaning done?

We have already said that before cleaning WinSxS, you need to use the services of a special utility. It is hidden in the depths of the system, and therefore ordinary users are not even aware of its existence. It is called DISM, and currently its eighth version is included in Windows.

For the utility to start, you need to have administrator rights. To start it in this mode, perform the following operations: click on the "Start" button, and in the menu that opens, find the search string. Enter the word "CMD" into it, press the "Enter" button.

A list of found elements will appear in the right part of the window, among which there will be a file of the same name. Right-click on it, and in the drop-down context menu select the "Run as Administrator" item.

First, we find out if the cleaning operation is really necessary at a particular moment. To do this, you must use the following command: "Dism.exe / Online / Cleanup-Image / AnalyzeComponentStore".

After that, several incomprehensible lines will appear, the meaning of which we will now explain. So, after the line “Component Store information ”, you should be interested in the very first value. At the end there is some value in Gb. This is the size of the WinSxS directory. We have already told what kind of folder it is, and the decision to clean it up should be made by you just after familiarizing yourself with its size.

The second line shows the real size of all components, which should be guided by. Finally, the most recent value is the number of those system files that have been replaced with new ones, and therefore they can be removed painlessly.

The first way

It is the most simple and effective. So, to make the WinSxS folder of Windows 7 smaller, run a command prompt in administrative mode. Enter the following command into it: "Dism.exe / Online / Cleanup-Image / StartComponentCleanup". A little time will pass, after which the system will inform you about the operation.

Attention! If you performed the operation using the first method, then all other actions can be omitted, since they will no longer make sense.

Second way

Start the command line emulator again in Administrator mode. Enter the command "cleanmgr" into it, then press the "Enter" key. The utility will start. In the latest versions of Windows, it can even determine the volume of old system update files that can be painlessly removed from the OS.

Third way

This method is intended to remove all old versions of components that are no longer needed. It is extremely useful for computer owners who have been running the same version of Windows for several years.

Important! If you follow our advice, you won't be able to rollback the update. The warning is all the more important because recently Windows 7 users suffered a series of system failures associated with the unsuccessful KB2859537 patch. However, if everything is fine with your OS, then the WinSxS folder (we will tell you how to reduce it) may be revised.

This operation is performed by the command "Dism.exe / Online / Cleanup-Image / StartComponentCleanup / ResetBase". The gain in the amount of freed up disk space will directly depend on the total number of updates that you have installed since the installation of the system itself. It happens that the size of the freed space is measured in gigabytes.

Should I clean it

So, after all of the above, you may well be in some difficulty. And this is understandable: on the one hand, the gain in the amount of freed up space attracts, but on the other ... What will you do if some update file turns out to be problematic?

If there is a corresponding WinSxS file, then there is nothing to worry about. But when it is not there, in some cases only reinstalling the system can help. So before this operation, we strongly advise you to decide whether you really need this bit of free space. Moreover, as you know, in Windows 8 WinSxS is partially optimized by system tools, so you shouldn't worry too much about it.

The WinSxS folder is located on the C drive in the Windows directory and is used to reserve storage of previously installed versions of system components. Its volume can be huge, often several gigabytes... Some users may be annoyed by this fact, and some (on computers with a small hard drive) simply need to somehow save space, including by reducing the volume of this folder. Fortunately, now, due to the significant volume of modern disks (several terabytes), this problem is almost no longer relevant and many may not even think about how to reduce this folder.

Why is it so large and constantly increasing?

We immediately warn you that it is extremely not recommendedmanually delete something from this folder using the standard method. Some even ask if it is possible to completely delete this folder? The unequivocal answer is no, by no means. This will almost certainly lead not only to system errors, but can also cause irreparable damage to the system up to to the impossibility of launching it further.

However, it is quite possible to reduce its volume in reasonable ways without harming the OS. Tips on cleaning methods will be described below for various operating systems: Windows 7, 8, 10. But you should not expect special miracles, the volume of this folder usually cannot be reduced much, most often such cleaning will be limited to several hundred megabytes, but in some cases you can and save a couple of gigabytes.

During Windows update, outdated versions of files and information about changes saved in this folder... This is necessary if you decide to rollback in case of problems - therefore, the contents of WinSxS improve reliability and resilience to system failures. The size of the folder depends on which periodicity the components are updated as often. That is, if you installed your operating system relatively long ago, then the directory will probably weigh significantly.

How to empty a folder in Windows 10

A dozen, in addition to the previously described, uses this directory to ensure Windows reset in case of unforeseen circumstances to the original state.

Applying the steps described below when updating the OS, you will be able to get rid of unnecessary files.

First load the console cmd on behalf of the admin. The line to be entered for our purposes will be next:

Dism.exe / online / cleanup-image / AnalyzeComponentStore

The WinSxS directory will be analyzed and see if it needs to be cleared.

If it is written Yes, then enter the command as in the next window.

The cleaning of our storage from obsolete files will automatically start, after which we will observe a message about the successful completion of the operation.

Cleaning should not be done very often, it only makes sense if the folder exceeds 7 GB in volume, less is normal.

We clean the folder in Windows 7

You need to tinker with this version of the system, as you need install additional update KB2852386, and then the required field will be added to the utility for cleaning disks.

First let's run Update centre by entering the word "center" in the search, or using Control Panel.

In the Download and install updates field, click Install... We look for the required, install it, then reboot.

Loading Disk cleanupby typing the word "cleaning" in your search.

In the utility, we are interested in cleaning system files, namely the field “ Cleaning Windows updates»Or backup files.

Clearing the folder in Windows 8

In the eight (8.1 also) in the disk cleaning utility, the ability to clean system files is available by default, which pleases - no need to make unnecessary gestures to install optional additional updates.

We start in the same way by entering the name of our utility in the search.

Similar to the seven we clean system files, or clean updates in the downloaded files.

In the eight with one, you can, as in the ten, clear this directory in console cmd(on behalf of the admin, of course). The team we are interested in:

DISM (Image Serving System) is utilityto help you install, configure, and update files and components in Windows.

Auto cleanup of backups

It is best to configure the automatic cleaning of these backup components, so as not to think about whether or not to start optimizing the WinSxS content or to prevent erroneous deletion of the necessary files.

You can configure this function in Planner... To open it in search let's hammer in the word “ scheduler».

In the console, follow the path Library \\ Microsoft \\ Windows \\ Servicing

Find the task StartComponentCleanup in the menu click Execute... The task of cleaning and compressing the components will start. You can also configure the optimal frequency of this task.

When you see the WinSxS directory - what is this folder in general, and why does it weigh so much? You cannot erase all content. At least in the usual way. If you delete important system files, the OS will malfunction. But the size of the directory grows over time. And it will be useful to figure out how to clean it and whether it is possible, in general, to do it.

WinSxS is located in the root directory of the OS (usually C: \\ Windows) in all modern Win, starting from version 7. The files and directories that are there are needed for the operating system to work. If they are removed, changed, moved or renamed, serious problems can arise. At best, errors will appear. At worst, Windows will no longer start. And you have to restore it. Therefore, before you clean up any system directory, make sure that it does not damage the OS and does not cause critical failures. And in order to understand if WinSxS can be removed, you need to figure out what it is for.

It stores the files that are needed to restore Windows. After each update, a backup is created - a certain image of the system. With it, you will be able to return Win to the state it was before the update. This is a useful and necessary feature - after all, new versions of programs and services do not always work stably.

If you installed the OS recently, then WinSxS will be "small" - only a few gigabytes. But over time, the directory grows or takes up more and more disk space. Its sizes sometimes reach 10-30 GB. Moreover, some of the content may no longer be needed. Why would you go back to the security update you downloaded a year ago?

But you can't just clear the entire folder. Or delete some "old" files by looking at their creation date. If you act carelessly or thoughtlessly, the system will stop functioning. It is possible to reduce the size of this directory using some built-in OS tools. Or just reinstall Win.

The memory that is specified in the WinSxS properties is slightly different from the "real" folder weight. In fact, it is slightly smaller, since some of the content is hard links (symbolic). The conductor "does not notice" them.

If several days have passed after the update and the OS is working normally, then the backup is no longer needed. However, it is recommended to erase only "old" files. After all, they definitely won't be needed. Full cleaning of the WinSxS folder in Windows 7 is not possible. Only some files are allowed to be deleted. This requires SP1 to be installed.

The freed up space can be distributed more profitably: download applications, download videos, save personal data, and so on. Or leave some memory for the needs of the system.

How do I know if SP1 is installed?

It was in Windows 7 SP1 that access to Win SxS appeared. In previous versions of Win, clearing this folder was not possible. To see if this package is on the OS:

  1. Go to the "Control Panel" (for example, through the "Start" menu).
  2. Open the System option under the System and Security category.
  3. The "Edition" field should contain information: OS version, Microsoft copyright, year of creation. If there is a line "Service Pack 1" there, then everything is in order and the catalog can be edited.

Before cleaning

Before cleaning WinSxS, you need to download one update (if not already installed).

  • Go to Start - Programs - Update Center.

  • Click on "Optional Updates". If there is no such item there, then all services are already loaded.
  • Find the update with the number "KB2852386" in the list.
  • Check the box and confirm the installation.

Without this update, WinSxS cleanup will not be available. It can also be downloaded from the official Microsoft website.

  1. Go to com.
  2. In the search bar at the top right, enter "KB2852386".
  3. Choose the update that suits your system: 32-bit or 64-bit.
  4. To, right-click on the "My Computer" icon, then on the "Properties" item. The "Type" line will indicate the bitness of Windows.

Cleaning

If you are wondering how to remove WinSxS, give up this idea. You cannot completely erase this folder. It is also not recommended to manually remove files from there. There will be unpleasant consequences. But clearing some of the content and making the directory a little smaller is a very realistic task.

Disk cleanup function

  • Right click on the system drive. A context menu will open.
  • Select the "Properties" line.
  • General tab.
  • Disk Cleanup.

Click on Disk Cleanup

  • Check Windows Updates. If it is not there, click on the "System Files" button. The required line should appear.
  • Confirm the action by clicking on "OK" and then on "Delete".
  • Wait for the process to finish. Next, a PC restart may be required.
  • The service only gets rid of unnecessary updates. You cannot erase the entire folder.

Command Prompt in Windows 10

WinSxS in Windows 10 can be cleared by using the console.

  1. Right click on the Start Menu. It looks like the Win logo.
  2. Select "Command Prompt" and run it as administrator.
  3. Enter the command "Dism.exe / online / cleanup-image / AnalyzeComponentStore".
  4. The system will analyze and issue recommendations.
  5. If it prompts you to remove unnecessary files, use the command "Dism.exe / online / cleanup-image / StartComponentCleanup". Cleaning starts.
  6. If the directory weighs less than 5 GB, it is better not to touch it. Otherwise, the opposite effect will turn out - an increase in volume instead of optimization.

If the WinSxS folder takes up too much space, you can clean it up. This is done through special OS services or the command line. Do not modify the contents of the directory directly. If you delete all files using the "Delete - Enter" method, serious problems will arise.

During the operation of the OS, users notice the rapid growth of the Windows folder. The increase in size is due to the fact that the internal winsxs folder begins to weigh a lot. Let's see what this winsxs folder is in Windows 7, 10, 8 and whether it can be deleted or cleaned.

Winsxs - what is this folder and should it be deleted

This folder is located along the path C: \\ Windows \\ winsxs and stores files of OS components, as well as backup copies and updates to these files. Even if these components are not installed in the operating system, they are stored in the winsxs folder, taking up HDD space.

Note: Under these circumstances, the letter of the local drive is C. Your letter may differ, be careful.

In fact, the OS components are in other places, and the contents of the winsxs folder are links to those components. When Windows updates are installed, they and their old copies are deposited in the winsxs folder. Over time, updates become more and more and, accordingly, the winsxs folder takes up a lot of space in Windows.

The winsxs folder can be up to several gigabytes in size. Although this free space does not mean anything for modern hard drives, it will not be superfluous. To find out how much winsxs weighs, just right-click on it, then select "properties", on the "general" tab, see the number of megabytes. This method will not give information about the actual size of the folder, but will help to judge the amount of free space. Remember this number, it will be needed in the future for comparison.

Important! It should be noted right away that it makes no sense to manually delete the winsxs folder in Windows in the traditional way, since you can remove the components that are vital for the operation of the system.

Cleaning programs will not work, there are standard OS tools that will help you clean the winsxs folder in Windows. Let's take a closer look at the methods.

Removing old updates through the Disk Cleanup utility

This method works in Windows 7 and older, which will reduce the size of the winsxs folder. Run Disk Cleanup in one of the following ways:

In the new window, click the clear system files button (shown in the screenshot). If prompted by UAC, click yes.

To clean the winsxs folder in Windows, make sure that the checkbox next to the "Clean up Windows updates" sub-item is checked, since this section is responsible for deleting files in the winsxs folder. Check other items as you wish. In this window, you can also estimate the approximate amount of free disk space. Finally, click OK and wait for the end of the process, you may need to restart your PC.

Note: the function of clearing updates is built into windows 8, 10. For the seven, Microsoft released an update for this option to appear. If you do not find the update cleanup point, then download and install the KB2852386 update package. The methods below do not work on Windows 7.

Cleaning with Task Scheduler

With the release of Windows 8, there was a function that allows you to clean the winsxs folder automatically. The OS has created an automatic StartComponentCleanup task that runs in the background to remove old versions of files after 30 days. This period is given to exclude incompatibility of new updates. You can manually start this task by following the steps below.

To start the task scheduler, in the "run" window (called by the Win + R buttons), write the taskschd.msc command, then click OK.

On the left side of the window, expand the Task Scheduler Library section, then the Microsoft and Windows subsections, find the Servicing section and click it. Select StartComponentCleanup, on the right side of the window, click "Run" to start cleaning the winsxs folder. You need to wait about an hour.

Note: you can accomplish this task through the command line. You must then use the command:
schtasks.exe / Run / TN "\\ Microsoft \\ Windows \\ Servicing \\ StartComponentCleanup"

Cleaning up via the command line

Dism.exe is a cmd application that allows you to perform various manipulations with Windows components, which will help you clean up the winsxs folder. Windows 10, 8.1 introduced a new AnalyzeComponentStore parameter to help determine how much space the winsxs pack actually takes up. Bring up the command line with administrator rights, enter the following command and press Enter:

Dism.exe / Online / Cleanup-Image / AnalyzeComponentStore

As a result of the calculations, you will know if cleaning is recommended. To see the amount of memory that can be freed, take a look at the items marked in the screenshot. The sum of these two elements shows the amount of used hard disk space.

After the analysis, you can start cleaning the winsxs folder. The StartComponentCleanup parameter in cmd produces similar results as in Task Scheduler. However, the components are removed immediately, without waiting. In cmd with admin rights, enter this construction, then click Enter:

Dism.exe / online / Cleanup-Image / StartComponentCleanup

Using the ResetBase parameter you remove all obsolete versions of each component. The command looks like this:

Dism.exe / online / Cleanup-Image / StartComponentCleanup / ResetBase

The SPSuperseded parameter helps reduce the space that the service pack takes up. Use a command like this:

Dism.exe / online / Cleanup-Image / SPSuperseded

Wait for the completion of these commands. Next, estimate the amount of memory freed through the AnalyzeComponentStore parameter.

Removing Windows Components

Windows 8, 10 allow you to enable, disable Windows components. These functions are located in the "Programs" section.

All Windows components are stored in the winsxs folder, whether they are enabled or not, and take up space. There is a way to help remove these components from winsxs entirely, thereby freeing up space. In the future, you can download remote components as needed.

Run cmd with admin privileges. Enter the command below, then press Enter:

DISM.exe / Online / English / Get-Features / Format: Table

The command line will build a table of component names, as well as their states. Remember the name of the component to be removed and use the following command:

DISM.exe / Online / Disable-Feature / featurename: NAME / Remove

In this command, you need to replace NAME with the name of your component. In the example, we will remove DirectPlay.

This will change the status to Disabled with Payload Removed. In these ways you can clear the winsxs folder in Windows.

That's all, now you know winsxs - what is this Windows 7, 8, 10 folder and how to clean it. It is recommended to use the first three methods first, although you do not need to resort to the method with the task scheduler, since it is duplicated, but everything is at your discretion. Removing the components is not recommended because it will not free up much space, and the removed components may be needed in the future. You can also, to free up additional space on the HDD.

Many are faced with the problem of lack of free hard disk space. Especially often the disk on which the operating system is installed becomes clogged. This is due to the fact that there are a lot of folders on it, which the system itself fills with the information it needs. This problem is also relevant for Windows 7. You can clean up system folders from unnecessary garbage either manually or using special programs.

Windows 7 system folders: the need to clean up and possible consequences

Each of the system folders has its own purpose and stores information of a certain kind. Before cleaning the disk, carefully read what function this or that folder is responsible for, otherwise you may lose important data or severely harm the operating system, which will lead to its breakdown:

  • System Volume Information - by default, this folder is hidden so that the user does not accidentally add unnecessary files to it and damage existing ones. It stores restore points that are created periodically after a certain period of time. Thanks to them, in the event of an unrecoverable error in the system, you can roll back all changes and updates to Windows and everything in it until the moment when everything worked fine. So think about whether to delete restore points, maybe someday they will be very useful to you;
  • Temp - This folder is also hidden by default. It contains all temporary files, that is, information about the passed games, application settings, cache, passwords, and more. You can clear the entire folder or delete only some of its components, if you are sure that they are definitely not needed anymore;
  • Temporary internet files is one of the subfolders located in the Temp folder. It stores all temporary files related to the browser: passwords, history, cache, cookies, modules and add-ons. Also, if you use offline mode in the Internet Explorer browser, after deleting this folder, previously saved sites will no longer be available without an Internet connection;
  • Winsxs is a folder that stores information about system updates. If you install updates, this folder will retain the previous version of the updated process or program. It is needed in order to roll back the computer to a previous version in the event of an unsuccessful system update, when no errors occurred. It is worth cleaning it only if you are not going to update the computer, since there is always a risk of getting a critical error during the update;
  • AppData - this folder stores data about all third-party programs. If you have installed any application or game, then all settings and actions performed will be recorded in this folder. You can selectively delete files belonging to programs you no longer use;
  • System32 is a very important folder, which should be cleaned only as a last resort. It contains information about the system settings and many programs installed in Windows by default (Notepad, Calculator and others);
  • Drivers is a subfolder located in the System32 folder. Responsible for storing most of the drivers installed on the computer;
  • Pagefiles.sys is not a folder but a file. It is needed to swap the RAM. The point is that many computers do not have enough RAM to run large programs. For such cases, this file exists. It is not recommended to delete it, since after that some applications will stop working due to lack of RAM;
  • Assembly - it contains one of the versions of the Microsoft .NET Framework, which is responsible for the compatibility of various programs written in different programming languages. Deleting this folder may cause the system to freeze or some third-party applications may not turn on;
  • Installer is a folder containing applications required for the correct removal or updating of other programs. It also stores patches, updates and other files designed for the full operation of applications;
  • DriveStore - a folder with drivers necessary for the correct operation of such computer components as a video card, processor, keyboard, mouse. If updating the current drivers leads to the refusal of the work of one or another component, then drivers of previous versions are also stored in this folder, just in case;
  • Downloads - the folder where all files are downloaded by default. If you started the browser for the first time without assigning another folder through the settings, then all downloaded files will be sent to this location. This is one of those folders that you need to clean up regularly;
  • folders with media files - this item includes folders such as "Videos", "Music", "Pictures". By default, they store desktop screensavers, standard pictures, videos and music of Windows 7. Their contents can be safely deleted or moved to a more free disk;
  • Windows is a folder, the deletion of files of which will certainly lead to a breakdown of the operating system. Don't clean up disk space by using the contents of this folder;
  • Downloaded Program File - This folder contains modules downloaded when using the Internet, that is, ActiveX controls and Java applications;
  • "Trash" - the folder where files are sent before they are permanently deleted. This folder should be cleaned as often as possible, almost daily;
  • Quick Access is a folder that stores thumbnails of recently opened files for quick access to them;
  • "Desktop" - everything that you save to the desktop is also transferred to the disk with the operating system in the "Desktop" folder of the same name.
  • Video: what files can be deleted on the system drive

    What not to do when cleaning up system folders

    Please read the specifics of the above folders carefully. Before clearing one of them, consider if its contents will be useful to you in the future. Some folders, such as Windows or System32, shouldn't be touched at all. And don't try to clean up folders by simply deleting their contents. This will lead to the fact that the remnants of them will remain in the computer's memory, which in the future will begin to litter and overload the system. There are only a few folders that you can manually clean up:

  • "Basket";
  • "Downloads";
  • "Images";
  • "Documents";
  • "Video";
  • "Music";
  • "Desktop";
  • Temp and Temporary internet files;
  • AppData.
  • In no case do not delete the folders themselves, this will lead to critical errors in the operation of the system, you only need to erase their contents. Also, before clearing system folders, make sure you can free up memory by other methods, for example, by uninstalling third-party applications and games.

    Methods to clean up Windows 7 system folders

    If you nevertheless decide to clear your hard drive from accumulated third-party files, then the easiest way is to use the built-in Windows functions. There are two initial options - standard and advanced cleaning.

    Standard cleaning

    Using the standard cleanup method, you will get rid of the following files and folders:

  • Downloaded Program File;
  • cache, temporary browser files, downloaded offline pages;
  • game statistics, application settings, temporary files created by various applications;
  • "Basket";
  • "Fast access";
  • system restore points.
  • To perform a standard hard disk cleanup, follow these steps:

  • Right-click on the disk you want to clean up and go to the "Properties" section.

    Opening the properties of the system disk

  • In the window that opens, go to the "General" section.

    Go to the "General" section

  • In the Disk Cleanup section, select the files you want to get rid of and click OK.

    Select the files you want to delete

  • Also, if you go to the "Advanced" tab, you can delete all system restore points except the last one. To do this, in the "System Restore and Shadow Copies" section, click the "Cleanup" button.

    Click the "Clean" button in the "System Restore and Shadow Copy" section

  • Extended cleaning

    With the advanced cleaning option, you will delete the following folders and files:

  • temporary files created when installing third-party programs;
  • Debug dump files - files created by the Windows debugger, a program that fixes errors in the system;
  • old files of the Chkdsk application - excess leftovers of files that appeared on the computer during a hard drive check;
  • files from the previous version of Windows - located in the Windows.old folder if you updated the version of the operating system;
  • error reports, history of errors encountered;
  • system update log - files designed to resolve errors that occurred when updating Windows.
  • To perform advanced disk cleanup, follow these steps:

  • Open "Command Prompt" through Windows search. Right-click on its icon and select the "Run as administrator" section.

    Run "Command Line" as administrator

  • Type in the cleanmgr command and press Enter on your keyboard.

    We register the cleanmgr command

  • In the list that opens, select the drive you want to clean up and click OK.

    Select the drive on which to perform cleaning

  • Check the files you want to erase and click OK. Selecting the files to be deleted
  • Video: Windows Disk Cleanup

    Disk cleaning with third-party programs

    Before proceeding with the manual cleaning of each folder separately, you should use special third-party programs created to automatically search for and clean the disk from unnecessary files:

  • Download CCleaner from the developer's official site and install it on a free disk.

    Download the CCleaner app

  • Launch the application and go to the "Cleaning" section.

    Go to the "Cleaning" section

  • On the left side of the program there is a list, here we mark all the sections that we want to get rid of.

    Selecting the sections to clear

  • Press the button "Analysis" and wait for the end of the process.

    Press the button "Analysis"

  • Click the "Clear" button. In the top header of the program, we can see how much memory is approximately free on the computer.

    Before deleting files, you can view their details

  • Video: Delete System Files Using CCleaner

    Features of cleaning individual system folders

    If the previous cleaning methods did not solve your problem or you need to clean one of the folders selectively, then find it in the sections listed below and follow the instructions.

    But many folders are hidden by default so that the user does not accidentally damage them. To display hidden folders in the general list, do the following:

  • Open File Explorer.

    Opening the explorer

  • Expand the Tools menu.

    Expand the "Service" menu

  • Go to the "Folder Options" section.

    Go to the section "Folder options"

  • In the window that opens, go to the "View" section.

    Go to the "View" section

  • Uncheck the box next to the words "Hide system-protected files" and put it in front of "Show hidden files, folders and drives."

    Changing the parameters of hidden folders

  • Winsxs

    Cleaning the Winsxs folder on Windows 7 is done through a standard disk cleanup. This method has already been described above. Before starting the cleanup, you are presented with a list of files that can be deleted. Check the section "Files of the backup copy of the update package" in it.

    We mark "Files of the backup copy of the update package"

    Video: how to empty the Winsxs folder in Windows 7

    System Volume Information

    To clear the System Volume Information folder, you must first access it:

  • Right-click on the folder and go to the "Properties" section.

    Open the properties of the System Volume Information folder

  • In the window that opens, go to the "Security" section.

    Go to the "Security" tab

  • Click on the "Change" button.

    Press the button "Change"

  • In the opened settings, click on the "Add" button.

    Click the "Add" button

  • In a special field, enter the name of your account and click the OK button.

    We register the username

  • In the list "Permissions for the group ..." put a tick in front of the words "Full access".

    We give full access to the folder

  • We press successively the buttons "Apply", OK.
  • Now let's move on to the properties of the computer.

    Go to computer properties

  • Go to the "System Protection" section.

    Go to the "System Protection" section

  • Select the disk containing the System Volume Information folder and click the "Configure" button. We indicate the path to the folder.

    Press the button "Configure"

  • In the window that opens, click the "Delete" button. We can also set the maximum amount of memory allocated for this folder by moving the corresponding slider.
  • We successively press the buttons "Apply", OK.

    DriversStore

    To remove outdated drivers from the DriversStore, follow these steps:

  • Open a command prompt as administrator through Windows search.

    Opening the command line

  • Write the command pnputil.exe –e and press Enter on your keyboard. This command will open a list of all drivers installed on your computer. Remember the number of the one you want to delete.

    We register the command pnputil.exe –e

  • Close the command line and reopen it as administrator.
  • Add the command pnputil.exe -d Oem # .inf, where instead of the pound sign (#) there will be the number of the driver to be removed. If you try to remove the driver of the device currently connected to the computer, a corresponding notification will pop up. Remove the device, or use the –f code in the command to remove the affected driver. But remember that without a driver, the connected device may stop working.

    We register and execute the command

  • Installer

    The Installer folder may contain files necessary for the system or programs, but there is a special third-party application PatchCleaner that automatically detects what can be removed from the content:

  • Download the PatchCleaner app from any trusted site.

    PatchCleaner searches for obsolete update files and allows you to move them to another media or completely remove them

  • Run the program and click the Browse button to start searching for the folder.

    Click the Browse button

  • We indicate the path to the Installer folder.

    Specify the path to the Installer folder

  • After the program analyzes the folder, information will appear about how many files are still in use and how many of them can be deleted. The program will also calculate how much disk space will be freed. Press the Delete button.

    Press the Delete button

  • We confirm the action by clicking the Yes button.

    We confirm the action by clicking on the Yes button

  • Pagefile.sys

    If you are sure that the computer will cope with the required tasks without the Pagefile.sys paging file, you can remove it by following these steps:

  • We open the properties of the computer.
  • Go to the section "Additional system parameters".

    Go to the section "Additional system parameters"

  • In the window that opens, go to the "Advanced" section and click the "Options" button.

    Press the button "Options"

  • In the window that opens, go to the "Additional" section again and in the "Virtual memory" subsection press the "Change" button.

    Click the "Change" button in the "Advanced" tab

  • Uncheck the box next to the words "Automatically select the amount of swap memory" and select the option "Without swap file", press the "Set" button.

    Setting the required parameters

  • Reboot your computer. The sys file will disappear, and with it the additional RAM.

    Restart your computer

  • Folders with history, cache and browser cookies

    Browser files can take up a lot of disk space. The easiest and safest way to remove them is through the settings of the browser itself: We mark the files. which need to be removed from the browser history

  • We select the parameter "For all time" and press the button "Clear history".

    We set the parameter "For all time" and clear the history

  • Disk cleaning problems

    If, after you have deleted any files from the system folder, errors appear or the computer starts to slow down, there is only one thing to do - perform a system restore. This could happen if the disk was not cleaned correctly or necessary files were deleted. System recovery is possible only if the computer has restore points:

  • Start your computer in safe mode.

    We start the computer in safe mode

  • Search Windows for the System Restore app.

    Open the "System Restore" application

  • In the window that opens, click on the "Next" button.

    Click the "Next" button

  • Select one of the restore points. Better to roll back the system to the point where all processes worked as well as possible.

    Choosing a restore point

  • Video: Windows 7 Recovery

    What to do if there is no "Clean up system files" button

    If, when trying to free up disk space through the standard cleaning method, you are faced with the absence of the "Clean up system files" button, this means that you have disabled UAC (User Account Control), and the program starts immediately with the ability to clean up system files. That is, pressing the "Clear system files" button gives you administrator rights and with them the ability to edit and clear system folders. But if UAC is disabled, then you have access to changing system files right away and you do not need to press any additional buttons.

    If the button "Clean up system files" is missing, account control is disabled

    If you want to clean up disk space or are sure that a part of the virus has survived in the system files, then the operating system itself has a standard and extended disk cleanup function for this case. You can also use third-party programs or clear each folder separately. But do not delete everything, otherwise it will lead to a breakdown of the computer, and the only way out is to roll back the system to the last restore point.