spo page control remove
Removes a control from a modern page
Usage
m365 spo page control remove [options]
Options
-u, --webUrl <webUrl>
URL of the site where the page is located.
-n, --pageName <pageName>
Name of the page where the control is located.
-i, --id <id>
The ID of the control to be removed.
--draft
Save the page as draft instead of republishing it.
-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
,permissions
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Examples
Remove a control from a SharePoint page, with confirmation
m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName home.aspx --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1
Remove a control from a SharePoint page and don't republish the page
m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName "home.aspx" --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1 --draft
Remove a control from a SharePoint page, that is located in a folder
m365 spo page control remove --webUrl https://contoso.sharepoint.com/sites/Marketing --pageName "Archive/home.aspx" --id b3d6ebc9-6c7b-4e1e-99c1-4c08b682e8c1
Response
The command won't return a response on success.