Skip to main content

pp website remove

Removes the specified Power Pages website from the list of active sites.

Usage

m365 pp website remove [options]

Options

-u, --url [url]

The URL of the website to remove. Specify either url, name or id.

-n, --name [name]

The name of the website to remove. Specify either url, name or id.

-i, --id [id]

The WebSite Id (GUID) of the website to remove. Specify either url, name or id.

-e, --environmentName <environmentName>

The name of the environment from which to remove the Power Pages website.

-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 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.

Permissions

ResourcePermissions
Power Platform APIPowerPages.Websites.Write

Examples

Remove Power Pages website by name.

m365 pp website remove --name Demo --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5

Remove Power Pages website by name without confirmation.

m365 pp website remove --name Demo --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --force

Remove Power Pages website by id.

m365 pp website remove --id 4916bb2c-91e1-4716-91d5-b6171928fac9 --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5

Remove Power Pages website by id without confirmation.

m365 pp website remove --id 4916bb2c-91e1-4716-91d5-b6171928fac9 --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --force

Remove Power Pages website by url.

m365 pp website remove --url https://site-0uaq9.powerappsportals.com --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5

Remove Power Pages website by url without confirmation.

m365 pp website remove --url https://site-0uaq9.powerappsportals.com --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --force

Response

The command won't return a response on success.