spo list webhook remove¶
Removes the specified webhook from the list
Usage¶
spo list webhook remove [options]
Options¶
Option | Description |
---|---|
--help |
output usage information |
-u, --webUrl <webUrl> |
URL of the site where the list to remove the webhook from is located |
-l, --listId [listId] |
ID of the list from which the webhook should be removed. Specify either listId or listTitle but not both |
-t, --listTitle [listTitle] |
Title of the list from which the webhook should be removed. Specify either listId or listTitle but not both |
-i, --id <id> |
ID of the webhook to remove |
--confirm |
Don't prompt for confirming removing the webhook |
-o, --output [output] |
Output type. json|text . Default text |
--verbose |
Runs command with verbose logging |
--debug |
Runs command with debug logging |
Remarks¶
If the specified id doesn't refer to an existing webhook, you will get a 404 - "404 FILE NOT FOUND"
error.
Examples¶
Remove webhook with ID cc27a922-8224-4296-90a5-ebbc54da2e81 from a list with ID 0cd891ef-afce-4e55-b836-fce03286cccf located in site https://contoso.sharepoint.com/sites/ninja
spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listId 0cd891ef-afce-4e55-b836-fce03286cccf --id cc27a922-8224-4296-90a5-ebbc54da2e81
Remove webhook with ID cc27a922-8224-4296-90a5-ebbc54da2e81 from a list with title Documents located in site https://contoso.sharepoint.com/sites/ninja
spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81
Remove webhook with ID cc27a922-8224-4296-90a5-ebbc54da2e81 from a list with title Documents located in site https://contoso.sharepoint.com/sites/ninja without being asked for confirmation
spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81 --confirm