I have created event handler(ItemDeleting, ItemUpdating) for a List and it isworking fine.I want to remove the same event handlers attached to the listplease can any body let me know how to do that.
If you installed them using a Feature, deactivate and Uninstall theFeature then remove the .DLL from the GAC.
I am using console application to add events to a list.
other reply for how to gain access to the instance of theEventHandler and then call the Delete Method. You can also iteratethrough the EventReceivers collection using a ForEach until you find theEventReceiverDefinition with the right name. It's easier if you don'tknow the GUID.
Deactivate the Feature.................
To remove the event receiver in code use the following:SPEventReceiverDefinition eventDef = list.EventReceivers[Guid];eventDef.Delete();You may want to check out the SharePoint Tips Utility Pack:http://www.codeplex.com/spstipsUtilityPack.
and thanks for link to download, tool
I am using a console application to add events to a list.