Skip to content

m365 spo homesite remove fails #6491

@reshmee011

Description

@reshmee011

Priority

(Low) Something is a little off

Description

m365 spo homesite remove fails with Error: Operation is not valid due to the current state of the object.

The code will need to be refactored to use _api/SPO.Tenant/RemoveTargetedSite with additional parameter to accept siteUrl.

Steps to reproduce

m365 spo homesite remove

Expected results

Removes the Home Site

Actual results

Error: Operation is not valid due to the current state of the object.
image

Diagnostics

No response

CLI for Microsoft 365 version

v10.1.0

nodejs version

v20.8.1

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions