It is not hard to fix.
Now, you might refer to this post offered byMiniTool Solution.
It will introduce multiple solutions to fix this issue.
![]()
When you runDisk Cleanupon yoursystem partition, you may get an issue purging windows update cleanup taking forever.
Then, you are prevented by it utilizing the utility.
What causes this error?

This usually occurs because of these factors: corrupted or missing system files or third-party software.
To patch this up, you could follow the solutions given below.
Heres a quick guide on how to do that.
![]()
Step 1: Open theRundialogue box by pressingWin+R.
Next, typems-prefs:troubleshootand pressEnter.
Step 2: On the right side, go toGet up and runningand clickWindows Update.

Then, clickRun the troubleshooterto open up the utility.
Step 3: Wait until the initial scan is complete.
ClickApply this fixto apply the repair strategy.
![]()
Step 4: After the fix is applied, cycle your setup.
However, the contents of this folder could be corrupted, so you cant fire off the cleanup.
In this case, you must delete the contents of this folder.
Here is how to do that.
Step 1: OpenFile Explorerand go to this path:Local Disk(C:)\Windows.
Step 2: Click to open theSoftwareDistributionfolder.
Step 3: Delete all the sub-folders inside it.
After that, see if the Disk Cleanup stuck on Windows Update Cleanup error is solved.
This folder is quite helpful if you want to revert to an older version.
Step 2: Delete all the sub-folders inside it.
After that, the Windows Update Cleanup stuck error should be solved.
Heres a quick guide on how to do this.
Step 1: Typecmdin theSearchbar, navigate toCommand Promptand chooseRun as administrator.
Step 2: To initiate anSFC scan, jot down this command:sfc /scannowand pressEnter.
Step 3: Once the SFC scan is finished, power cycle your rig.
Step 4: Open another elevated CMD window following the instructions mentioned above.
Step 5: To initiate a DISM scan, key in this command:DISM /Online /Cleanup-Image /RestoreHealthand pressEnter.
Step 6: After the DISM scan is complete, reset your system.
In this case, you oughta perform a Clean Boot firstly and then run Disk Cleanup.
If you are also experiencing this error, try the methods mentioned above.