getting error in event deletion