WSUS Support Forums: How to delete the update files from WSUS? - WSUS Support Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

How to delete the update files from WSUS?

#1 User is offline   lupp 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 8
  • Joined: 27-Feb-04

Posted 25 Oct 2005, 17:52

Because the harddisk space of my WSUS is so small (8G), after a few monthes, the space is full.

i found much update files are not required anymore because the newer patches had been out. Please tell me how to delete the older patch files?

at the same time, i selected 2 kind of languages at the very start ,i canceled one language when i found the space is less. but all the files of this language are still here , so how can i to delete those?

This post has been edited by lupp: 25 Oct 2005, 17:53

0

#2 User is offline   jamielim 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 45
  • Joined: 17-Dec-03

Posted 26 Oct 2005, 00:58

Yeah, I have the same problem also, can anyone help? :blink:
0

#3 Guest_stuc_*

  • Group: Guests

Posted 26 Oct 2005, 01:41

This is a huge problem with me also as I have now used up about 40GB of storage on it (there is a mixed 2K, XP and MSO installs). Is there some sort of scavenging tool available to remove original service packs in favour of new ones (2K3 Office comes to mind as its recent and has a bugged version released). I would delete the files manually except that the database really needs updating to reflect the removed packages ...
0

#4 User is offline   lupp 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 8
  • Joined: 27-Feb-04

Posted 26 Oct 2005, 05:50

up! up!
0

#5 User is offline   jdflory 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 45
  • Joined: 29-Aug-05

Posted 26 Oct 2005, 06:26

I'm surprised noone has addressed this yet.

Download the MS WSUS server diagnostic tool on the MSWSUS site here. If you look at the readme that accompanies it, you will find the command WsusDebugTool.exe /Tool:PurgeUnnneededFiles

What this does is purges all update files where all the updates are marked as DECLINED. So to make sure the files get deleted, make sure the update is declined first.

***disclaimer*** MS does not offer support for this product and they encourage you not to use it if you don't need it. I'm sure it works fine, but they make sure you know you do this at your own risk.

This post has been edited by jdflory: 26 Oct 2005, 06:27

0

#6 Guest_stuc_*

  • Group: Guests

Posted 26 Oct 2005, 07:02

View Postjdflory, on Wed 26th Oct 2005, 11:26 pm, said:

I'm surprised noone has addressed this yet.

Download the MS WSUS server diagnostic tool on the MSWSUS site here. If you look at the readme that accompanies it, you will find the command WsusDebugTool.exe /Tool:PurgeUnnneededFiles

What this does is purges all update files where all the updates are marked as DECLINED. So to make sure the files get deleted, make sure the update is declined first.

***disclaimer*** MS does not offer support for this product and they encourage you not to use it if you don't need it. I'm sure it works fine, but they make sure you know you do this at your own risk.


Thanks! That has helped to an extent. Have managed to regain a couple of Gig from it. Is there anything that removes obsolete files though? ie superceeded updates ...
0

#7 User is offline   jdflory 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 45
  • Joined: 29-Aug-05

Posted 26 Oct 2005, 07:20

No. You have to DECLINE anything you want deleted, then run this tool. Unfortunately, the guys behind the WSUS product feel that hard drive space is not an issue in this day and age, and that if you manage what updates get downloaded you should never have a disk space problem.

I don't think that is very fair myself, and wish they would have made the ability to purge files much simpler and well supported.

@stuc - 40GB is a lot more than I have in my content folder. Mine is only up to 3GB. However I only download Windows XP (not 64 bit), Windows 2000, and Office files. I also limit that to English only, don't download unless approved, and don't use the express install option. This basically limits my download items to only exactly what I need. Perhaps your environment requires more, but definately make sure you are not 'overdownloading'.

@lupp - I think I remember reading that this tool does clean out the unneeded language files. I'm interested in hearing if it works for you or not.

This post has been edited by jdflory: 26 Oct 2005, 07:27

0

#8 User is offline   garyb 

  • Advanced Member
  • PipPipPip
  • Group: Regular Members
  • Posts: 52
  • Joined: 16-Sep-03

Posted 26 Oct 2005, 10:31

Hi,
In relation to the above can I reduce the database sizes also? These are what I have:

10/25/2005 - 13,893,632 master$4IDR
08/08/2005 - 13,893,632 master.mdf

10/25/2005 - 786,432 mastlog$4IDR
08/11/2005 - 786,432 mastlog.ldf
10/25/2005 - 655,360 model$4IDR
08/08/2005 - 655,360 model.mdf
10/25/2005 - 786,432 modellog$4ID
09/27/2005 - 786,432 modellog.ldf
08/04/2005 - 3,145,728 msdbdata.mdf
08/29/2005 - 786,432 msdblog.ldf
09/04/2002 - 291,110,912 SUSDB.mdb
10/26/2005 - 8,585,216 SUSDB_log.LD
09/04/2002 - 8,388,608 tempdb.mdf
09/04/2002 - 786,432 templog.ldf

Lastly does anyone have any idea why the files attached exist on my server taking up valuable space?
If you look closely it claims the files are in a directory named "au". Is this Australia?? If so why..
This one Attached File  XP.txt (806bytes)
Number of downloads: 145 shows the directory
This one Attached File  xpfrance.txt (1.25K)
Number of downloads: 98 shows files inside the above directory for France! I only have English selected to download!!

This post has been edited by garyb: 26 Oct 2005, 10:54

0

#9 Guest_Guest_Dave_*_*

  • Group: Guests

Posted 26 Oct 2005, 13:18

View Postjdflory, on Thu 27th Oct 2005, 12:20 am, said:

No. You have to DECLINE anything you want deleted, then run this tool. Unfortunately, the guys behind the WSUS product feel that hard drive space is not an issue in this day and age, and that if you manage what updates get downloaded you should never have a disk space problem.

I don't think that is very fair myself, and wish they would have made the ability to purge files much simpler and well supported.

@stuc - 40GB is a lot more than I have in my content folder. Mine is only up to 3GB. However I only download Windows XP (not 64 bit), Windows 2000, and Office files. I also limit that to English only, don't download unless approved, and don't use the express install option. This basically limits my download items to only exactly what I need. Perhaps your environment requires more, but definately make sure you are not 'overdownloading'.

@lupp - I think I remember reading that this tool does clean out the unneeded language files. I'm interested in hearing if it works for you or not.


I was tinkering with the WSUS server in our lab. I ran the purge files command and my total WSUS patch size dropped from 29.4 GB to 28.1 GB. The drop was a lot smaller than I anticipated. I then went back to the home page and noticed that my server was downloading about 30 GB worth of updates! I'm not sure if this is supposed to happen and it will take a while for the downloads to finish up so I can run the purge command again and verify the behavior. If this had happened in production, my boss would be pissed!
0

#10 User is offline   jdflory 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 45
  • Joined: 29-Aug-05

Posted 26 Oct 2005, 14:22

@garyb - In the WSUS administration page, go to Options -> syncronization options and click the 'advanced' button at the bottom of the page. What options are selected under the Language section?
0

#11 Guest_Guest_Andrew_*_*

  • Group: Guests

Posted 27 Oct 2005, 06:56

What difference between "wsusutil deleteunneededrevisions" and "WsusDebugTool.exe /Tool:PurgeUnnneededFiles"?
0

#12 User is offline   jdflory 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 45
  • Joined: 29-Aug-05

Posted 28 Oct 2005, 12:50

View PostGuest_Andrew_*, on Thu 27th Oct 2005, 09:56 am, said:

What difference between "wsusutil deleteunneededrevisions" and "WsusDebugTool.exe /Tool:PurgeUnnneededFiles"?


From what I read, the former cleans out the database of old information, and the latter cleans out the files of declined updates.

This post has been edited by jdflory: 28 Oct 2005, 12:51

0

#13 User is offline   WizzardS10 

  • Newbie
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 24-Oct-05

Posted 30 Oct 2005, 07:38

View Postgaryb, on Wed 26th Oct 2005, 11:31 am, said:

Hi,
In relation to the above can I reduce the database sizes also? These are what I have:

10/25/2005 - 13,893,632 master$4IDR
08/08/2005 - 13,893,632 master.mdf

10/25/2005 - 786,432 mastlog$4IDR
08/11/2005 - 786,432 mastlog.ldf
10/25/2005 - 655,360 model$4IDR
08/08/2005 - 655,360 model.mdf
10/25/2005 - 786,432 modellog$4ID
09/27/2005 - 786,432 modellog.ldf
08/04/2005 - 3,145,728 msdbdata.mdf
08/29/2005 - 786,432 msdblog.ldf
09/04/2002 - 291,110,912 SUSDB.mdb
10/26/2005 - 8,585,216 SUSDB_log.LD
09/04/2002 - 8,388,608 tempdb.mdf
09/04/2002 - 786,432 templog.ldf

Lastly does anyone have any idea why the files attached exist on my server taking up valuable space?
If you look closely it claims the files are in a directory named "au". Is this Australia?? If so why..
This one Attachment attachment shows the directory
This one Attachment attachment shows files inside the above directory for France! I only have English selected to download!!


Not real likely. You would need SQL Enterprise manager installed, but those sizes look real good.

Lastly, AU is Automatic updates. Those folders are for updating legacy clients. You could probabally trim out the x64 and non-english folders, but at you own risk of course.
0

#14 User is offline   lupp 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 8
  • Joined: 27-Feb-04

Posted 11 Nov 2005, 01:09

@jdflory, when i run the tool, messages like these:

C:\Temp>WsusDebugTool.exe /Tool:PurgeUnneededFiles
Running... PurgeUnneededFiles
Starting a state machine reset...
Could not complete purge content as reset agent did not complete!

can you tell me how?
0

#15 User is offline   lupp 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 8
  • Joined: 27-Feb-04

Posted 22 Nov 2005, 02:26

anybody know?
0

#16 User is offline   Degea 

  • Newbie
  • Pip
  • Group: New Members
  • Posts: 1
  • Joined: 22-Nov-05

Posted 23 Nov 2005, 20:59

Hi,

Move the executable to lets say c: and run it from there.
Syntax should look like: C:\WsusDebugTool.exe /Tool:PurgeUnneededFiles

Should work just fine.

This post has been edited by Degea: 23 Nov 2005, 20:59

0

#17 Guest_Guest_*

  • Group: Guests

Posted 08 Mar 2006, 13:56

View Postlupp, on Fri 11th Nov 2005, 06:09 pm, said:

@jdflory, when i run the tool, messages like these:

C:\Temp>WsusDebugTool.exe /Tool:PurgeUnneededFiles
Running... PurgeUnneededFiles
Starting a state machine reset...
Could not complete purge content as reset agent did not complete!

can you tell me how?

I hate to bring an old thread back to life, but I'm getting this same error:
C:\>WsusDebugTool.exe /Tool:PurgeUnneededFiles
Running... PurgeUnneededFiles
Starting a state machine reset...
Could not complete purge content as reset agent did not complete!
0

#18 Guest_NachoTaco_*

  • Group: Guests

Posted 20 Mar 2006, 13:01

Stop the World Wide Web Publishing Service first.
0

#19 User is offline   zapora 

  • Member
  • PipPip
  • Group: Regular Members
  • Posts: 7
  • Joined: 04-Jul-05

Posted 22 Mar 2006, 01:04

Can anyone confirm, that /purgeunneededfiles really works for declined updates? If yes, how exactly (the update files are gone, the database records are gone, both)?
0

#20 Guest_Guest_Dave_*_*

  • Group: Guests

Posted 12 May 2006, 05:52

View Postzapora, on Wed 22nd Mar 2006, 06:04 pm, said:

Can anyone confirm, that /purgeunneededfiles really works for declined updates? If yes, how exactly (the update files are gone, the database records are gone, both)?


From what I understand the command removes the actual update files that have been downloaded to your server. It does not, however, remove the entry from your WSUS web page.
0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users