Remove-Calendar-Events

Remove Calendar Events

Remove-CalendarEvents.ps1

ABSTRACT

This script deletes calendar items in Microsoft Outlook based on the subject.

DESCRIPTION

You may need to use this script if you have Outlook performance issues. This kind of problem occurs on macOS when the calendar has more than 5000 items/events. The script uses the Outlook COM object to interact with the user’s Outlook application. It loops through each item in the user’s calendar and deletes the ones whose subject matches the specified string.

(back to top)

QUICKSTART

Prerequisites

Installation

Regarding Microsoft PowerShell, go to the pages for :

Regarding Microsoft Outlook go to the pages :

Usage

  1. Download Remove-CalendarEvents.ps1 and save on your computer.
  2. Start PowerShell and go to the folder where you saved the file.
  3. Set the PowerShell execution policies for Windows computers to Unrestricted
      Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
    
  4. If you want to cancel the meeting calendar named, My Meeting , run the following command
     .\Remove-CalendarEvents.ps1 -SubjectToDelete "My Meeting"
    

(back to top)

ROADMAP

Windows Linux MacOS
In progress To be decided To be decided

(back to top)

LICENSE

Distributed under the Unlicense license. See the file, LICENCE for more information.

(back to top)

FEEDBACK

If you have any feedback, please post on the Issues section.

(back to top)

CONTRIBUTION

Feel free to contribute to its improve. See file, CODE_OF_CONDUCT for more information.

Contributor Covenant