Skip to content

New command: spo site alert remove #6863

@milanholemans

Description

@milanholemans

Usage

m365 spo site alert remove [options]

Description

Removes an alert from a SharePoint list

Options

Option Description
-u, --webUrl <webUrl> The URL of the SharePoint site.
--id <id> The ID of the alert.
-f, --force Don't prompt for confirmation

Examples

Remove an alert by ID

m365 spo site alert remove --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7cbb4c8d-8e4d-4d2e-9c6f-3f1d8b2e6a0e

Remove another alert without confirmation

m365 spo site alert remove --webUrl https://contoso.sharepoint.com/sites/Marketing --id 2b6f1c8a-3e6a-4c7e-b8c0-7bf4c8e6d7f1 --force

Default properties

No response

Additional Info

API request:

DELETE https://contoso.sharepoint.com/sites/Marketing/_api/Web/Alerts/DeleteAlert('<alert ID>')

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions