“Can I remove a scheduled report from the Office 365 Security and Compliance admin center?” was a question that arose on a recent training course. The short answer is, yes, you can, but not using the Security and Compliance center – let’s see why.
If you try to delete a schedule using the “Delete Schedule” button in the Security and Compliance center, then the following error is generated:
Error: Cannot process command because of one or more missing mandatory parameters: ScheduleId
The solution is to remove the schedule using PowerShell. In general, PowerShell commands for Office 365 allow you to do anything the portal does, plus many other actions besides. However, the answer does not lie in connecting to a PowerShell session with the Security and Compliance Center. Instead, you must make a PowerShell connection to Exchange Online as detailed here.
Once connected to the Exchange Online session, use the following command to get a list of the report schedules:
Next, identify the schedule you wish to remove. The start and end date attributes will be useful if you have several reports with similar names. Once you locate the schedule, copy the attribute labeled Identity – you’ll use that as the last value in the next command:
Remove-ReportSchedule -ScheduleId <Identity>
When you refresh your page in the Security and Compliance admin center, the schedule you selected to remove should no longer appear.