Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions docs/docs/cmd/pp/website/website-remove.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
import Global from '/docs/cmd/_global.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# pp website remove

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

## Usage

```sh
m365 pp website remove [options]
```

## Options

```md definition-list
`-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
```

<Global />

## Permissions

<Tabs>
<TabItem value="Delegated">

| Resource | Permissions |
|--------------------|---------------------------|
| Power Platform API | PowerPages.Websites.Write |

</TabItem>
</Tabs>

## Examples

Remove Power Pages website by name.

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

Remove Power Pages website by name without confirmation.

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

Remove Power Pages website by id.

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

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

Remove Power Pages website by url.

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

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

5 changes: 5 additions & 0 deletions docs/src/config/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,11 @@ const sidebars: SidebarsConfig = {
type: 'doc',
label: 'website get',
id: 'cmd/pp/website/website-get'
},
{
type: 'doc',
label: 'website remove',
id: 'cmd/pp/website/website-remove'
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion src/m365/pp/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ export default {
SOLUTION_PUBLISHER_REMOVE: `${prefix} solution publisher remove`,
TENANT_SETTINGS_LIST: `${prefix} tenant settings list`,
TENANT_SETTINGS_SET: `${prefix} tenant settings set`,
WEBSITE_GET: `${prefix} website get`
WEBSITE_GET: `${prefix} website get`,
WEBSITE_REMOVE: `${prefix} website remove`
};
Loading