Purge / Delete corrupted or Un-needed patches on WSUS Server

If you want to purge the downloaded patches on WSUS Server to cleanup / delete unneeded content, then you have to use the following tools;

  • WSUSDebug PurgeUnneededFiles
  • WSUSUTIL.exe Deleteunneededrevisions
  • WSUSUTIL.exe Reset
  • WSUSUTIL.exe Removeinactiveapprovals (optional)

WSUS Debug Tool: Run PurgeUnneededFiles command to Purge unneeded content. This command deletes all files not needed on the WSUS server.

WsusDebugTool.exe /Tool:PurgeUnneededFiles

***(NOTE: You have to decline the updates first.)

WSUSUTIL.exe deleteunneededrevisions: Purges the metadata for unnecessary update revisions from the database. This is useful for managing WSUS with an MSDE database.

***(NOTE: this command should only be run after stopping the Windows Server Update Services website in Internet Information Services MMC.)

WSUSUTIL.exe Reset: Now that you have purged the content, use ‘WSUSUTIL.exe reset’ which checks that every metadata row in the database has corresponding content stored in the file system.  If content is a missing or corrupted, WSUS downloads the content again.

WSUSUTIL.exe reset

***(NOTE: WSUSUTIL.exe is installed C:\Program Files\Update Services\Tools)


The option “Download update files to this server only when updates are approved” must be checked / selected or else, it will re-download those “not needed” updates,during the next sychronization schedule.

Open WSUSAdmin Console – Click on Options – Click on Synchronization Options – Scroll down to Update Files and Languages Section – Click on Advanced – Click OK – Select “Download update files to this server only when updates are approved” – Click OK and save settings.


WSUS Debug Tool / Server Diagnostic Tool

WSUS Debug Tool Readme

Windows Server Update Services Downloads

2 thoughts on “Purge / Delete corrupted or Un-needed patches on WSUS Server

  1. Due to an error during the distribution of the SQL Server 2005 SP1, WSUS downloaded 6,8GB instead of 1,8GB in the local repository.

    Running the above sequence will erase the unwanted files, and the unwanted SQL Server 2005 SP1 files, that are not wanted according the language filters (english language downloads only)?

    George J.

  2. Hi, If I want to delete updates that are actually declined on my wsus server from the hard drive I have only got to stop the Windows Server Update Services website and run WsusDebugTool.exe /Tool:PurgeUnneededFiles ?

    Do I also have to run the other 3 commands ?

    Note: My wsus is running with sql server 2k.

    For example: I have downloaded many drivers when I installed the wsus server and now I don’t need them any more; If my understanding is correct I first have to decline these updates, stop the service in IIS and run WsusDebugTool.exe /Tool:PurgeUnneededFiles on the server ?

    Many thanks, Dragos

Leave a Reply

Your email address will not be published. Required fields are marked *