Skip to main content

spo list webhook remove

Removes the specified webhook from the list

Usage

m365 spo list webhook remove [options]

Options

-u, --webUrl <webUrl>

URL of the site where the list is located.

-l, --listId [listId]

ID of the list. Specify either listId, listTitle or listUrl.

-t, --listTitle [listTitle]

Title of the list. Specify either listId, listTitle or listUrl.

--listUrl [listUrl]

Server- or site-relative URL of the list. Specify either listId, listTitle or listUrl.

-i, --id <id>

ID of the webhook.

-f, --force

Don'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, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--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 a specific ID from a list retrieved by ID in a specific site

m365 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 a specific ID from a list retrieved by Title in a specific site

m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listTitle Documents --id cc27a922-8224-4296-90a5-ebbc54da2e81

Remove webhook with a specific ID from a list retrieved by URL in a specific site without being asked for confirmation

m365 spo list webhook remove --webUrl https://contoso.sharepoint.com/sites/ninja --listUrl '/sites/ninja/Documents' --id cc27a922-8224-4296-90a5-ebbc54da2e81 --force

Response

The command won't return a response on success.

CTRL + M