How to delete a custom event log source

  • Thread starter Thread starter PCC
  • Start date Start date
P

PCC

I am using Windows Server 2003 Enterprise Edition. I have a series of
custom event log files that were created by an application gone bad. They
are all showing up in the event viewer and I am not sure how to get rid of
them. Any advice, links or pointers? Please keep in mind that these are
NOT the system event log files. Thank you.
 
PCC,

Have you tried the Delete method on the EventLog class? Also, have you
tried to unregister the source by calling the DeleteEventSource method on
the EventLog class?

Hope this helps.
 
I was hoping there was a UI way of doing it, but I just wrote a console app
and got it over with. It took all of 90 seconds. Thanks Nicholas.

Nicholas Paldino said:
PCC,

Have you tried the Delete method on the EventLog class? Also, have you
tried to unregister the source by calling the DeleteEventSource method on
the EventLog class?

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

PCC said:
I am using Windows Server 2003 Enterprise Edition. I have a series of
custom event log files that were created by an application gone bad. They
are all showing up in the event viewer and I am not sure how to get rid of
them. Any advice, links or pointers? Please keep in mind that these are
NOT the system event log files. Thank you.
 
Back
Top