spo web alert remove
Removes an alert from a SharePoint list
Usage
m365 spo web alert remove [options]
Options
-u, --webUrl <webUrl>The URL of the SharePoint site.
--id <id>The ID of the alert.
-f, --forceDon't prompt for confirmation.
-h, --help [help]Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options,examples,remarks,permissions,response,full. Default isoptions.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md,none. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| SharePoint | AllSites.FullControl |
| Resource | Permissions |
|---|---|
| SharePoint | Sites.FullControl.All |
Examples
Remove an alert by ID
m365 spo web alert remove --webUrl https://contoso.sharepoint.com/sites/Marketing --id 7cbb4c8d-8e4d-4d2e-9c6f-3f1d8b2e6a0e
Remove another alert without confirmation
m365 spo web alert remove --webUrl https://contoso.sharepoint.com/sites/Marketing --id 2b6f1c8a-3e6a-4c7e-b8c0-7bf4c8e6d7f1 --force
Response
The command won't return a response on success.