Can not delete temporary files in "Windows Update-cleanup.

Trond Gunnar Raa 100 Reputation points
2025-04-26T00:34:22.0033333+00:00

I'm having trouble deleting temporary files in the "Windows Update Cleanup" folder (Settings > Storage > Temporary files). The file is 380 MB and seems impossible to delete. I've also tried "Disk Cleanup," but there are no files listed under Windows Update Cleanup there. This problem started after today's Windows updates from Microsoft, KB5055627 and KB5056579. I've restarted my PC, but that didn't solve the issue. I've also used the "Run" command (Win+R) %temp% - temp and deleted all files. The SoftwareDistribution folder has also been emptied. Does anyone know of a solution to this problem?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,568 questions
0 comments No comments
{count} votes

Accepted answer
  1. S.Sengupta 23,526 Reputation points MVP
    2025-04-26T14:56:30.3966667+00:00

    Open Command Prompt as Admin and copy-paste the following command followed by hitting the Enter key:

    dism.exe /online /cleanup-image /startcomponentcleanup

    Let the command run.

    Reboot,

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. MotoX80 35,831 Reputation points
    2025-04-27T22:01:08.9033333+00:00

    Add the resetbase switch.

    Note that you will not be able to uninstall any updates after you run this. I refer to this as a "no going back" option.

    dism.exe /online /cleanup-image /startcomponentcleanup /resetbase
    
    0 comments No comments

  2. Trond Gunnar Raa 100 Reputation points
    2025-04-28T00:14:06.52+00:00

    The command/parameter was executed, and the problem is solved. Many thanks!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.