liferay notificationevent delete by deliverBy

Aye Aye, modified 5 Years ago. New Member Post: 1 Join Date: 8/16/20 Recent Posts
Hi Everyone, I would like to delete notification .While I try to delete with the following method.
 List<UserNotificationEvent> notiList= _notiEventLocalService.getUserNotificationEvents(guardian.getLoginUserId(), UserNotificationDeliveryConstants.TYPE_WEBSITE);
                    for(UserNotificationEvent notiEvent : notiList) {
_notiEventLocalService.deleteUserNotificationEvent(notiEvent); 
}However getUserNotificationEvents is searching with receiver login ID and not with deliver user id.  Which method should i use to get with sender id. 

Thank You,
AYE
thumbnail
Yan Paing, modified 5 Years ago. Regular Member Posts: 130 Join Date: 3/11/10 Recent Posts
Hi ,Can some one please suggest. 
Thanks