0

I have a subsite, I broke permissions that are inherited from parent to create unique permissions, then I accidentally deleted all of the permissions for this subsite. Now I'm just like a simple user without any modification rights, I can see the subsite, walk in it, but I can't manage or modify or delete it.

How can I delete the subsite, without required permissions?

2
  • Before I try and answer, can you advise if you have any administration tools, such as ControlPoint that might help with this? What version of SharePoint you are using.? Commented Nov 22, 2013 at 9:56
  • @karthik, I haven't any controlpoint. The version is SP2010 Commented Nov 22, 2013 at 10:14

2 Answers 2

3

If you have access to the server you could delete it using powershell script : link to source

Remove-SPWeb [-Identity] <SPWebPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Confirm [<SwitchParameter>]] [-Recycle <SwitchParameter>] [-WhatIf [<SwitchParameter>]]
9
  • but why would you want to delete the subsite? maybe he has alot of info on the site and wants to regain control? ;)
    – Ali Jafer
    Commented Nov 22, 2013 at 10:24
  • Because his question was: "How can I delete the subsite, without required permissions?") Commented Nov 22, 2013 at 10:28
  • lol you right ;) totally missed that! man its been a long week ;)
    – Ali Jafer
    Commented Nov 22, 2013 at 10:31
  • @user2954017 do you have access to the server?
    – Ali Jafer
    Commented Nov 22, 2013 at 11:44
  • @andrey, it doesn't work for me. Error: Remove-SPWeb : Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access the database before trying again. Commented Nov 22, 2013 at 11:44
2

if your site collection admin than its simple!

goto http://YouRootUrl/YourSubsiteName/_layouts/user.aspx and now select Inherit Permissions within the ribbon, that should reset the site back to normal!

or goto:

central admin -> under site collection click on 'change site collection admin' -> within the drop down box for site collection you can select the site, on the right side it will show you the site on the left the subsite, select the subsite in question and click ok. now add your user account name and click ok! you should be able to login to the subsite as normal!

lol just noticed the deletion part ;) atleast the above is to give you control to the subsite again without having to delete the subsite :)

you could use stsadm aswell!

http://technet.microsoft.com/en-us/library/cc262877(v=office.12).aspx

stsadm -o deleteweb -url http://server_name/sites/site_name/subsite_name -force

i know stsadm is for 2007 but it works in 2010 ;)

6
  • ok dont use force!
    – Ali Jafer
    Commented Nov 22, 2013 at 11:47
  • that error means you dont have access to the server! have you run stsadm as admin and not just opend it up? right click cmd and run as admin!
    – Ali Jafer
    Commented Nov 22, 2013 at 11:52
  • @user2954017 have you tried the other methods first? get the site working and than delete it would be simpler!
    – Ali Jafer
    Commented Nov 22, 2013 at 11:55
  • I updated the question Commented Nov 22, 2013 at 12:10

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.