Can I delete email from all mail forever?

Can I delete email from "all mail" forever?

Hi there!
Do the following
message.setFlag(Flags.Flag.DELETED,true);
folder.close(true);
store.close();
these 3 statements will delete email from the mail server.
get back to me after u try this.
ciao
vivek

Similar Messages

  • HT1277 can I delete emails from my IPhone and the server as well?

    Can I delete emails from both my IPhone 5 and the server as well?

    It's very easy to do - open up the music app, find the song/artist/album you want to delete and then swipe on it right to left and press 'delete'. Once you have done this it will take up no more space on your device whether it's in the cloud or not.
    If the song is still appearing in the music app with a little cloud next to it then you can stop it from showing by going into settings, music, and turning off 'show all music'. Note that this will remove ALL songs from the music app that have the cloud next to it (the cloud means they are in the cloud, online, but not stored on the device) and if you want to play them you will have to open itunes and redownload it, or change this setting back to on.
    Let me know if you need any more help!

  • Can't Delete Email from .Mac

    Hi,
    I'm having an issue where I can't delete email from my .Mac account using the web interface or the Mail client. I receive the following error message when I try to delete messages:
    "Mail was unable to remove the deleted message in the mailbox ".Mac" on server "mail.mac.com". The server error encountered was: The connection to the server "mail.mac.com" on port 143 time out."
    This problem just surfaced today and I can't find any information on the .Mac website. Thanks for any help.
    Cheers,
    Ignats

    I was hoping that it would be a temporary issue but it is still continuing 24 hours later. I'm fairly certain that it is not an issue with the Mail client because I can delete email from my other accounts; still can't delete email from my .Mac account. I continue to receive the error message in my original post.
    Is anyone else experiencing this problem?
    Thanks m.bode for responding to my question.
    Message was edited by: nolabrew

  • Can't delete email from appointment calendar from blackberry 8310?

    I currently have a blackberry 8310 with at&t. I deleted an email that i don't use anymore, but it's still showing up in my appointment calendar, how do i get rid of this?

    I was hoping that it would be a temporary issue but it is still continuing 24 hours later. I'm fairly certain that it is not an issue with the Mail client because I can delete email from my other accounts; still can't delete email from my .Mac account. I continue to receive the error message in my original post.
    Is anyone else experiencing this problem?
    Thanks m.bode for responding to my question.
    Message was edited by: nolabrew

  • I would like to know how can I delete emails from my email block have more than 8000? Thank you.

    I would like to know how can I delete emails from my email block have more than 8000? Thank you.

    I want to say, delete the 8000 not one by one, or 50 in 50... Minimum of 200 by
    200

  • Can't delete emails from "read only" Mail account

    I am trying to delete emails to clear hard drive space.
    On one of my computer's accounts (ONLY one), the mailboxes have the heading "read only", and I can't delete emails. I don't remember selecting this setting, and I can't find it anywhere.
    Can someone please point me in the right direction--how do I turn off the "read only" status of the InBox? And--is that why I can't delete emails??
    Thank you!

    I've had trouble with JavaMail starting on July 21st. I've used the same code for months, but all of a sudden, I can't delete messages from Gmail using the DELETED flag. I open the folder as READ_WRITE, grab the messages from the folder, set the DELETED flag, double check to make sure the DELETED flag was set, then close the folder (setting EXPUNGE to TRUE). Nothing happens. No exception is thrown or message is given, and no messages get deleted from the inbox (they just remain sitting there). I've tried calling the EXPUNGE method manually after setting the DELETED flag, but then it complained that the underlying implementation could not execute the method because the message was READ ONLY!!! I'm out of ideas. I've posted on Google's forums, but every other .NET and command terminal commands seem to still be working. I'm wondering if Gmail altered their configuration to become more compliant with the IMAP protocol, and JavaMail (or its underlying implementation) is still not 100% compliant?
    Thanks for your consideration.
    Joshua

  • On my iPad I have installed the update ios 7.0.4 and now I can't send emails from the mail app is it just me or a problem with the update?

    On my iPad I have updated the software to iOS 7.0.4 and now I can't send any emails from the mail app.  Is this me or the update?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    The iPad's Mail app has no provisions for creating groups. However, you can use a third party app that many users recommend.
    MailShot -  https://itunes.apple.com/us/app/mailshot-pro-group-email-done/id445996226?mt=8
    Group Email  -  https://itunes.apple.com/us/app/group-email!-mail-client-attachments/id380690305 ?mt=8
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • After adding a new account, I can't delete emails from the inbox of this account.

    I just added a sixth account to my Thunderbird installation. There was no problem adding the account and I can send and receive emails without problem. However, I cannot delete emails from the inbox. What should I do to correct this?

    It is a POP account.
    I just backed up the profile.
    I don't know the size of the inbox nor how to see what it is nor change it. However, the inbox for this account is currently empty. (Yes, I know this post is about not being able to delete emails from the inbox, so how can it be empty? In my research I found a post of someone with the same problem who discovered he could move emails from the inbox to another folder and then delete that folder (not the individual mails in the folder, but only the entire folder). That is how I emptied the inbox, but it is a very cumbersome work around that I shouldn't have to do.

  • Can't delete emails from inbox

    Anyway to delete emails from your inbox or other folders other than the mail application. I have multiple emails from the same server that when I delete, they disappear momentarily then I return to my inbox and they all reappear. I made them divert directly to my trash, yet I still cant delete them from the trash folder,
    Thanks

    What kind of email account - POP, IMAP, Exchange?
    Who is running the server?

  • How can I delete email from iPhone and ipad at the same time

    How can I delete emails on my iPhone and ipad at the same time

    Use IMAP Mail e.g. Gmail

  • Can't delete email from iphone

    has anyone noticed problems in the last 30 days an inability to delete email from the phone? I have rebuilt mailboxes to make sure I didn't have some weird sync feature clicked and it's not working. Very annoying.

    Because you're having problems with both Yahoo IMAP and MS Exchange, also with the Calendar sync too, I would imagine it to be a problem with your iPhone and not a server side problem.
    Have you tried defaulting the iPhone to factory defaults? (Backup data beforehand!)

  • How can i delete emails from my iphone or ipad one time and have it be deleted on all my devices?

    I have an iphone and ipad and want to be able to delete an email on one time and have it delete it all all my devices, including my MacBook Pro. I have Cloud set up.

    I think this might work. Im not sure though, but give it a try.
    Settings > iCloud
    Make sure Mail is turned on
    Delete the accounts you want to delete
    It should be gone from all devices

  • Have downloaded Yosemite and lost my outgoing mail settings in the process. I can still receive email from all my mail accounts but cannot send any...

    I have downloaded Yosemite but lost my outgoing mail settings in the process. I can still receive mail from all my accounts but cannot send any...

    Open mail
    click on mail  on top
    click preferences
    click accounts tab
    scroll down to TLS Certificate
    click up & down arrow and select  (com.apple.idms.appleid  )
    It worked for me

  • Can't send email from Mac MAIL

    I am setting up my new MacBook -- specifically the Mac MAIL, and intend to include a yahoo account and my new mac.com account.
    So far, through Mac MAIL, I am able to send and receive email with my mac.com account, but can only receive email on my yahoo account. When I try to send an email from the yahoo account through Mac Mail, I get an error message about the outgoing server. (btw, no trouble if I go through the Safari browser to yahoo, which is why yahoo phone assistant gave up trying).
    BUT.....the outgoing server settings are correct, as per my review and the yahoo phone assistant. Still, no luck.
    Anyone had this problem? Thanks for any advice.
    MacBook   Mac OS X (10.4.8)  
    MacBook   Mac OS X (10.4.8)  
    MacBook   Mac OS X (10.4.8)  
    MacBook   Mac OS X (10.4.8)  

    Kappy,
    Am I reading it correctly that you’re suggesting the OP to set up his/her Yahoo account again?
    You should never, ever, set up two accounts in Mail with the same Account Type, User Name and Incoming Mail Server. For each account, Mail creates a folder within ~/Library/Mail/ whose name starts with the account type (POP, IMAP, Mac), followed by the username and the incoming mail server. Having two accounts sharing the same account folder in Mail is calling for trouble. Amongst other problems, deleting one of the accounts would cause the (shared) account folder to be deleted as well, and all the mail stored there to be lost...

  • Can't send email from Apple mail using hosted exchange since upgrade to 10.5.8

    I've got a client who just upgraded to 10.8. Since doing so he can recieve email but not send it for a hosted exchange account. He can send and recieve from his personal pop account. It is a wireless connection.  I have tried the following without any success:
    1. Verified all the config info was correct (server password etc) - no change
    2. Deleted and re-added the account - same result
    3. Deleted keychain data and readed the account - no change.
    4. Ran disk utility (why not?) - no change
    5. Removed an internet sharing app called open garden - no change
    6. Installed 10.8.1 - no change
    After trying all of this when we start mail everything looks good and then the outbound server abruptly goes "offline". The exchange host says there are no issues on their end. Internet works too. Email delivers/sends to his iPhone, iPad, and a home iMac that was also upgraded to 10.8.
    Anyone with other ideas? This one has me stumped.
    -Jonathan

    I have the exact same issue, but with a standard IMAP account and SMTP.  My iPhone can send out, using the EXACT same settings, from the exact same WiFi connection...but the 10.8 MacBook cannot send at all.  The only account I can send out on is my iCloud account. 
    I have also tried all the steps above...no luck.
    I have also turned off all network filters and firewalls...no luck.  (And as I said above, my iPhone is on the exact same WiFi connection and using the exact same settings, and it can send fine.)
    Other messages I've found via Google have suggested simply forcing the SMTP server to use Port 25, but that didn't work for me either.

Maybe you are looking for

  • Can't find an app in the App Store after deleting it

    When I look up Metacert, it doesn't show up the search results and when I look it up through safari and it goes to the App Store, it says it isn't available in the US. I see other people using this app or downloading it, so I know this isn't true. It

  • Grouping of colums,

    Hello Guys, I just have an issue,I have sql to be shown below: COL1 COL2 COL3 COL4 A1 1 mycol1 genes1 mycol2 genes2 genes3 genes4 2 mycol1 genes1 mycol4 genes22 mycol11 genes23 genes29 Where Col1,COL2,COL3 are from table a. and col4 is from table 2 a

  • How can I run both...

    Mountain Lion (primary OS X) & Snow Leopard (secondary OS X) on same machine? I have tried to install Snow Leopard as a virtual machine, but it tells me that I do not have a server version. I do not have server version for both Mountain Lion & Snow L

  • Integration wid MIcrosoft SOLOMON

    Hi All, I have to integrate 200 Solomon system with XI. Data communication will be bidirectional & integration will take place for almost 10 business processess which wil be similar for each Solomon system. My query is can I use webservice to send da

  • Perform a COMMIT during a DB lock

    Hi experts, I have locked certain fields of a DB table using a lock object (called the FM ENQUEUE_XXXX). After successfully executing the FM,  I need to update a table which is not affected by the lock object and save the changes with a COMMIT WORK.