I tried below code snippet to delete

Getting error on this line SmsMessageFolde r smsFlr = outSess.SmsAcco unt.Inbox; saying No priveleges to access SmsAccount.Inbo x

Can somebody help with this or post a working snippet to delete message from inbox


OutlookSession outSess = new OutlookSession( );
SmsMessageFolde r smsFlr = outSess.SmsAcco unt.Inbox;

if (smsFlr.Count > 0) ...