Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
Posts: 3
Registered: ‎05-14-2012
My Device: 9630
My Carrier: Telus

How to Delete Message

Hi ,

I'm trying to delete message from BlackBerry and from Outlook ( Exchange Server as well).

But it's deleting ONLY from device..

Here is the code :

 

if ((message.getStatus() == Message.Status.TX_SENT) 
{
 folder.deleteMessage(message, true); 
 
   .....
}

 

folder.deleteMessage(message, true);

 

But if I want to delete any message manually from device.. a have an optoin : 

Delete message ?

  • On MailBox & Handheld 
  • On Handheld

Firsl option allows to delete message from both places ( Outlook and Device )...

How know, how can I delete messages programmaticaly from Device ?

Thank you.

 

 

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to Delete Message

welcome to the support forums.

if the message is deleted on outlook depends on the synchronization settings of the user.
when i delete a mail on my BB it will also be deleted on Exchange/Outlook, but maybe you have different settings?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Contributor
Posts: 3
Registered: ‎05-14-2012
My Device: 9630
My Carrier: Telus

Re: How to Delete Message

[ Edited ]


Here are the steps to delete messages in both places:
1) Open Email Options.
2) Open Email Reconciliation
3) Select Delete On : MailBox & Handheld

Another question :
How I can SEND email without to Synchronize it with Outlook /Account ?
In this case I can send this email and deleting it automatically on BlackBerry.

Highlighted
Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to Delete Message

please use a new thread for a new question, and mark this solved.

as you might note, the settings of a BB are not really related to development, as there is no API to change them.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter