Script to remove cancelled meetings from User mailbox

Senario - We would like a mailbox where our helpdesk can go to look at meeting setups for the day.

We created a user mailbox called IT resource Aggregate and have one resource forwarding any meeting invites to the IT resource Aggregate.  We have turned on, on the client side auto accept meetings etc.  and it is doing just that which is perfect im half way there.  However when I cancel the meeting and send the update the resource does it job and removes the meeting from its CAL and again forwards a copy to IT resource Aggregate mailbox.  The IT resource Aggregate mailbox marks the meeting in its CAL as cancelled but does not remove it from its own Calendar.  I was wondering if there is a script out there that can help me at the very least remove the meeting from the Cal of the IT resource Aggregate mailbox.

Or is there another way of automating this process?

All mailboxes are in O365 not sure if that matters but I wanted to mention it.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David LeeCommented:
jgutierr76Author Commented:
I edited the mailboxname:

Set olResCalendar = OpenMAPIFolder("\ITRESAGG\Calendar")

But i get a run time error.
David LeeCommented:
The best explanation is that the path you provided is invalid.  Add the following code to the code you already have.

Sub GetFolderPath()
    Dim olkFol As Outlook.MAPIFolder
    Set olkFol = Application.ActiveExplorer.CurrentFolder
    MsgBox "The path to the currently selected folder is" & vbCrLf & vbCrLf & olkFol.FolderPath, vbInformation + vbOKOnly, "Get Folder Path"
    Set olkFol = Nothing
End Sub

Open in new window

Once you've done that, select the folder you want and run the GetFolderPath macro.  It will display the path to the selected folder.  Copy and paste that path into the first bit of code and you should be in business.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.