I'm getting the following error when trying to remove a subsite from site collection.

Remove-SPOSite : The managed path [subsitename] is not a managed path in this tenant.

I've checked the managed path for the tenant using a script and the results are


So my resulting code for powershell is

Remove-SPOSite https://mysite.sharepoint.com/[subsitename]/test

I suspect the managed paths has gone screwie somewhere but I cannot see where! Any suggestions would be most helpful.

Does sharepoint online do something I cannot see on the managed paths? I.e https://mysite.sharepoint.com/sites/athletesub/testbut hides the sites part of the URI?

1 Answer 1


I've figured it out.

Someone created a subsite within the subsite of test! As the error message didn't give me that info I missed it.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.