Skip to content

spo customaction remove

Removes specified custom action from site or site collection

Usage

spo customaction remove [options]

Options

Option Description
--help output usage information
-i, --id <id> Id (GUID) of the custom action to remove
-u, --url <url> Url of the site or site collection to remove the custom action from
-s, --scope [scope] Scope of the custom action. Allowed values Site|Web|All. Default All
--confirm Don't prompt for confirming removal of a user custom action
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to a SharePoint Online site, using the spo login command.

Remarks

To remove user custom action, you have to first log in to a SharePoint Online site using the spo login command, eg. spo login https://contoso.sharepoint.com.

Examples

Removes user custom action with ID 058140e3-0e37-44fc-a1d3-79c487d371a3 located in site or site collection https://contoso.sharepoint.com/sites/test

spo customaction remove -i 058140e3-0e37-44fc-a1d3-79c487d371a3 -u https://contoso.sharepoint.com/sites/test

Removes user custom action with ID 058140e3-0e37-44fc-a1d3-79c487d371a3 located in site or site collection https://contoso.sharepoint.com/sites/test. Skips the confirmation prompt message.

spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test --confirm

Removes user custom action with ID 058140e3-0e37-44fc-a1d3-79c487d371a3 located in site collection https://contoso.sharepoint.com/sites/test

spo customaction remove -i 058140e3-0e37-44fc-a1d3-79c487d371a3 -u https://contoso.sharepoint.com/sites/test -s Site

Removes user custom action with ID 058140e3-0e37-44fc-a1d3-79c487d371a3 located in site https://contoso.sharepoint.com/sites/test

spo customaction remove --id 058140e3-0e37-44fc-a1d3-79c487d371a3 --url https://contoso.sharepoint.com/sites/test --scope Web

More information