Can I Delete CBS Files?


  1. Posts : 207
    W10 Pro v22H2 64-bit
       #1

    Can I Delete CBS Files?


    Please see attachment. I used to delete these text files every week during my cleanup routine. Now, I guess because of CU, I don't have authority to do that. I get a message that I must get authority from SYSTEM.

    First, assuming I can do this somehow, which of these items can I safely delete? Any log file is garbage as far as I'm concerned, and I'll delete everything here if I can.

    Second, I saw somewhere that I could disable Windows Modules Installer, delete the stuff, then re-enable WMI. However, it's already not running, and there doesn't seem to be any problem because of it.

    So, what can I delete, and what's the best way to get ability/authority to do that? I've looked through the screens about getting authority from another entity. If that's what I have to do, somebody will need to guide me through that process, step-by-step.

    Thanks to anybody who can help.

    P.S. This is the 2nd time I've uploaded an attachment in this forum. I see the first one is still there. Should I delete these things (I assume this can be done) once my problem is resolved?
      My Computer


  2. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #2

    vanp said:
    Please see attachment. I used to delete these text files every week during my cleanup routine. Now, I guess because of CU, I don't have authority to do that. I get a message that I must get authority from SYSTEM.

    First, assuming I can do this somehow, which of these items can I safely delete? Any log file is garbage as far as I'm concerned, and I'll delete everything here if I can.

    Second, I saw somewhere that I could disable Windows Modules Installer, delete the stuff, then re-enable WMI. However, it's already not running, and there doesn't seem to be any problem because of it.

    So, what can I delete, and what's the best way to get ability/authority to do that? I've looked through the screens about getting authority from another entity. If that's what I have to do, somebody will need to guide me through that process, step-by-step.

    Thanks to anybody who can help.

    P.S. This is the 2nd time I've uploaded an attachment in this forum. I see the first one is still there. Should I delete these things (I assume this can be done) once my problem is resolved?
    It's your machine, and you can do as you see fit.....but all log files are not garbage. Persistently deleting any an all logs files you encounter on a daily basis will likely cause an error or a BSOD at some point. Windows 10 is not Windows 8 or 7 or XP. Many of those log files are there for a system purpose and will be deleted by the system when no longer needed.

    In the case of the CBS files and folders, there may be uncommitted changes the system needs to do after a restart, and deleting all things CBS may corrupt your data store.

    In short, over-cleaning in your sense may be dangerous. Please take caution.
      My Computers


  3. Posts : 31,666
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #3

    vanp said:
    P.S. This is the 2nd time I've uploaded an attachment in this forum. I see the first one is still there. Should I delete these things (I assume this can be done) once my problem is resolved?
    If you delete the previous attachment your other thread in which it appears will no longer show the picture. That would make the thread less useful to other who are looking for a solution to the same problem. Best to leave it there to help others.
      My Computers


  4. Posts : 207
    W10 Pro v22H2 64-bit
    Thread Starter
       #4

    Thanks, f14tomcat and Bree, for responding.

    f14tomcat, I'm not deleting everything I see, but I have been deleting the CBS and DISM log files (along with other stuff, not all of it Windows) every week for maybe a few months. There's been no problem, and things get re-created when they're needed. Also, notice that one of the files is over 26MB. If this thing self-maintains and disappears or at least gets a lot smaller, OK, but I'll delete these things if I can. Given that I've been doing this for a while without problem, does it seem safe to continue? Also, are you saying that Windows/some component thereof, will, under some condition, actually try to read these files looking for some information?
      My Computer


  5. Posts : 56,830
    Multi-boot Windows 10/11 - RTM, RP, Beta, and Insider
       #5

    vanp said:
    Thanks, f14tomcat and Bree, for responding.

    f14tomcat, I'm not deleting everything I see, but I have been deleting the CBS and DISM log files (along with other stuff, not all of it Windows) every week for maybe a few months. There's been no problem, and things get re-created when they're needed. Also, notice that one of the files is over 26MB. If this thing self-maintains and disappears or at least gets a lot smaller, OK, but I'll delete these things if I can. Given that I've been doing this for a while without problem, does it seem safe to continue? Also, are you saying that Windows/some component thereof, will, under some condition, actually try to read these files looking for some information?
    Being there are thousands of individual system log files, it's impossible to define under what condition and circumstances Windows may look for a certain one. I based most of my reply on the one comment you made, which I took 99% literally. "Any log file is garbage as far as I'm concerned, and I'll delete everything here if I can."

    It is simply not necessary to be that squeaky clean. The example of space used in that one file, 26MB, is not exorbitant. Many system log files will overwrite themselves over time. You don't say in your system specs how large your drive is, or whether it's a SSD or HDD, so it's hard to say what the impact of a 26MB file would have on your system; I suspect not much.

    I don't know if you periodically run Disk Cleanup or not. It's part of the regular Windows maintenance, but can be manually run. It's designed to delete and cleanup system files no longer needed, including log files.....safely.

    Open and Use Disk Cleanup in Windows 10 Windows 10 Performance Maintenance Tutorials
      My Computers


  6. Posts : 207
    W10 Pro v22H2 64-bit
    Thread Starter
       #6

    f14tomcat , thanks again.

    The drive type and space are not a concern. My attitude is: garbage, gone. I don't care if it's one byte. Systems generally do a lousy job of cleaning up after themselves. For example, NVIDIA has told me of some of their stuff I can delete. Same with the Pale Moon browser. I do run Disk Cleanup once a week, along with CCleaner, but no cleaning tool gets everything.

    As for this 26MB file, I'll watch it awhile and see what happens. Again, thanks.
      My Computer


  7. Posts : 2,832
    Windows 10 Pro X64
       #7

    Hi,

    I do run Disk Cleanup once a week, along with CCleaner, but no cleaning tool gets everything.
    True. I use Wise Disk Cleaner on top of the two you mentioned and am still at a loss as to why several installs on the same machine show disk usage discrepancies in the order of several Gb.
    Sometimes I reset the machine using an online source and it reduces the used space quite a lot even keeping all the installed software and personal files.
    Go figure.... ??
    Same MB, same amount of RAM etc. Odd.

    Cheers,
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:11.
Find Us




Windows 10 Forums