New command: m365 pp website webrole remove
Open
@Ateina is already working on this.
Since Jan 29, 2026.
new feature
work in progress
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 413
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 21
Description
Usage
m365 pp website webrole remove [options]
Description
Removes the specified webrole
Options
| Option | Description |
|---|---|
-i, --id <id> |
ID of the webrole to remove. |
--websiteId [websiteId] |
ID of the Power Pages website. Specify either websiteId or websiteName but not both. |
--websiteName [websiteName] |
The unique name (not the display name) of the Power Pages website. Specify either websiteId or websiteName but not both. |
-e, --environmentName <environmentName> |
The name of the environment where the web role is located. |
--asAdmin |
Run the command as admin and retrieve Power Pages websites for environments you do not have explicitly assigned permissions to. |
-f, --force |
Don't prompt for confirmation |
Examples
Deletes webrole 2ca3eaa5-140f-4175-8261-3272edf9f339 from Power Pages website Contoso-Demo in the given environment.
m365 pp website webrole remove --id "2ca3eaa5-140f-4175-8261-3272edf9f339" --websiteName Contoso-Demo --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
Deletes a webrole from the selected Power Pages website in the given environment without confirmation prompt.
m365 pp website webrole remove --id "2ca3eaa5-140f-4175-8261-3272edf9f339" --websiteId 2ca3eaa5-140f-4175-8261-3272edf9f339 --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --force
Additional Info
More details here: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/mspp_webrole. In this case the API call would be a DELETE request to ${dynamicsApiUrl}/api/data/v9.2/mspp_webroles(webroleid)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.