spo customaction clear
Deletes all custom actions from site or site collection
Usage
m365 spo customaction clear [options]
Options
-u, --webUrl <webUrl>Url of the site or site collection to clear the custom actions from
-s, --scope [scope]Scope of the custom action. Allowed values
Site,Web,All. DefaultAll--confirmDon't prompt for confirming removing all custom actions
-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 isfull.--query [query]JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]Output type.
json,text,csv,md. Defaultjson.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Examples
Clears all user custom actions for both site and site collection https://contoso.sharepoint.com/sites/test. Skips the confirmation prompt message.
m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --confirm
Clears all user custom actions for site https://contoso.sharepoint.com/sites/test.
m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --scope Web
Clears all user custom actions for site collection https://contoso.sharepoint.com/sites/test
m365 spo customaction clear --webUrl https://contoso.sharepoint.com/sites/test --scope Site