Skip to content

spo customaction clear

Deletes all custom actions from site or site collection


m365 spo customaction clear [options]


-u, --url <url>
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. Default All
Don't prompt for confirming removing all custom actions
-h, --help
output usage information
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text. Default text
Runs command with verbose logging
Runs command with debug logging


Clears all user custom actions for both site and site collection Skips the confirmation prompt message.

m365 spo customaction clear --url --confirm

Clears all user custom actions for site

m365 spo customaction clear --url --scope Web

Clears all user custom actions for site collection

m365 spo customaction clear --url --scope Site