I know how to delete permissions from lists and doclibsdocument libraries. Simply iI can use the breakroleinheritanceBreakRoleInheritance, and iI can remove every user. But iI couldn't find a way to do this with a site.
Lets say the $site =new-object Microsoft.SharePoint.SPSite (http://spt/spaces/thisisit)
Like this: $site =new-object Microsoft.SharePoint.SPSite (http://spt/spaces/thisisit)
$site don't$site doesn't have inheritance method. (or iI just don't know how to use it).
So how can iI delete every permission on a site? Not on the lists, not on the doclibsdocument libraries, botbut on the site itself?