Quantcast
Viewing all articles
Browse latest Browse all 10096

Programmatically Delete SP Online subsites (move to recycle NOT permanently delete)

I would like to programmatically (CSOM/PS/etc) be able to delete subsite(s) within a SPO site collection. However, I want the deleted subsite to be moved to the recycling bin and NOT permanently deleted. 

For example OnPrem
Remove-SPWeb $subsite.url -Confirm:$false -Recycle:$true

Is there a way to do this with an online subsite?


TJK


Viewing all articles
Browse latest Browse all 10096

Trending Articles