You can remove your source if you no longer need to use it to write entries to that log. Doing so affects all components that used that source to write to the log. For example, if you have two components that write to a log using the source string “mysource,” removing “mysource” as a valid source of events affects both the components.
You might remove an event source if you were changing your source from one log to another. For example, suppose you want to stop writing entries to a OrdersProcessed log and start writing entries to a OrdersSent log. First, you would remove the association of the source with the first log, and then you would register the source with the new log to which you wanted to write events.
To remove an event source from the local computer
[Visual Basic] EventLog.DeleteEventSource("MyApp1") [C#] EventLog.DeleteEventSource("MyApp1");
To remove an event source from a remote computer
[Visual Basic] EventLog.DeleteEventSource("MyApp1", "myserver") [C#] EventLog.DeleteEventSource("MyApp1", "myserver");