Skip to content

Instantly share code, notes, and snippets.

@talkingmoose
Created November 6, 2011 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save talkingmoose/1343116 to your computer and use it in GitHub Desktop.
Save talkingmoose/1343116 to your computer and use it in GitHub Desktop.
Permanently delete Outlook for Mac messages
tell application "Microsoft Outlook"
set theMessages to the selection
permanently delete theMessages
end tell
@VisualNation
Copy link

Thank you sir. Worked perfectly.

@win-lee
Copy link

win-lee commented May 31, 2016

Thanks, helped me too. Worked perfectly.
Still don't knot why these messages couldn't be deleted, but they are gone now :-)

@imSeva
Copy link

imSeva commented Jul 10, 2017

Hi,

I have a meeting invite that is stuck in the outbox and can not delete it using the script. I receive this error message:
+++++
Result:
error "Microsoft Outlook got an error: calendar event id 6151 doesn’t understand the “permanently delete” message." number -1708 from calendar event id 6151
+++++
Is there another command I need to use to delete a meeting invite vs. a message?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment