The IMsgServiceAdmin::DeleteMsgService method deletes a message service from a profile.
See IMsgServiceAdmin : IUnknown.
HRESULT DeleteMsgService(
LPMAPIUID lpuid
);
The IMsgServiceAdmin::DeleteMsgService method deletes a message service from a profile. DeleteMsgService removes all profile sections related to the message service.
DeleteMsgService performs the following steps to delete the message service:
The message service's entry point function is not called again after the service has been deleted.
To retrieve the MAPIUID for the message service to delete, retrieve the PR_SERVICE_UID column from the message service's row in the message service table. See the procedure outlined in IMsgServiceAdmin::CreateMsgService for more information.