Open appieschot opened 2 months ago
m365 pp website webresource remove [options]
Removes the specified webresource
-i, --id [id]
--websiteId [websiteId]
websiteId
websiteName
--websiteName [websiteName]
-e, --environmentName <environmentName>
--asAdmin
-f, --force
Deletes webresource 2ca3eaa5-140f-4175-8261-3272edf9f339 from Power Pages website Contoso-Demo in the given environment.
m365 pp website webresource remove --id "2ca3eaa5-140f-4175-8261-3272edf9f339" --websiteName Contoso-Demo --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339"
Deletes a webresource from the selected Power Pages website in the given environment without confirmation prompt.
m365 pp website webresource remove --id "2ca3eaa5-140f-4175-8261-3272edf9f339" --websiteId 2ca3eaa5-140f-4175-8261-3272edf9f339 --environmentName "Default-2ca3eaa5-140f-4175-8261-3272edf9f339" --force
More details here: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/webresourceset. In this case the API call would be a DELETE request to ${dynamicsApiUrl}/api/data/v9.2/webresourceset(webresourceid)
DELETE
${dynamicsApiUrl}/api/data/v9.2/webresourceset(webresourceid)
LGTM 👍 Let's open it up! @appieschot may I kindly ask you to update the link to the endpoint docs. It seems to be redirecting to 404.
Usage
m365 pp website webresource remove [options]
Description
Removes the specified webresource
Options
-i, --id [id]
--websiteId [websiteId]
websiteId
orwebsiteName
but not both.--websiteName [websiteName]
websiteId
orwebsiteName
but not both.-e, --environmentName <environmentName>
--asAdmin
-f, --force
Examples
Deletes webresource 2ca3eaa5-140f-4175-8261-3272edf9f339 from Power Pages website Contoso-Demo in the given environment.
Deletes a webresource from the selected Power Pages website in the given environment without confirmation prompt.
Additional Info
More details here: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/reference/entities/webresourceset. In this case the API call would be a
DELETE
request to${dynamicsApiUrl}/api/data/v9.2/webresourceset(webresourceid)