cancel
Showing results for 
Search instead for 
Did you mean: 

Deleting a site

buxtonmarauder
Champ in-the-making
Champ in-the-making
I want to a delete a site using the "share" interface.

I am not the site owner but I do have ALFRESCO_ADMINISTRATORS privilege

How do I do that ?

The "delete site" button only appears if you are the site owner…

Confused 😞
9 REPLIES 9

kqfflo
Champ in-the-making
Champ in-the-making
Hi marauder,

I'm not that sure, but you can delete a site with the rights you mentioned, when you access the sites via WCM (alfresco/faces/jsp/browse/browse.jsp)

This should to the trick, but I won't give any guarantee  Smiley Very Happy

BR Florian

buxtonmarauder
Champ in-the-making
Champ in-the-making
Thanks Florian..

I found my answer - but it's less than ideal..

As ALFRESCO_ADMINISTRATOR you have the following methods for removing a site you do not own..

(suggested by alfresco support)

1. Change the password of the site owner, log in as the site owner and delete the site in the SHARE interface
2. Login to the ALFRESCO interface and delete the site through that - not recommended and causes orphaned data in my experience
3. Use the restful API's in some custom javascript

(suggested by zaizi employee)

4. In the SHARE interface view sites and folders under the repository button - remove the folder associated with the site using the delete folder option.

All of these options are less than ideal IMHO. If the logged in user has ALFRESCO_ADMINISTRATOR as a privilege which grants them the ability to delete a site (item 4) then why can the SHARE UI not show me the delete button in the same place it does when i OWN the site..

This is a pretty shoddy user experience.. judging by the number of bugs on Alfresco's JIRA site it aint gonna get fixed any time soon.. 😞

mysha
Champ in-the-making
Champ in-the-making
I found that the best way is to make myself the owner of the site.

I do this per alfresco documentation example. (http://docs.alfresco.com/4.0/index.jsp - programming - Alfresco API reference - Reposatory javascript api - Services api - site service - site object - setmembership)

1. Login alfresco explorer.
2. Create javascript under company home - script.

   
var site = siteService.getSite("SITENAMEHERE");
    if(site){

        var authorityName = "YOURNAMEHERE";
        var role = "SiteManager";

        site.setMembership(authorityName, role); 
    }

3. Alter above to reflect the sitename you want to alter and your username.
3. Goto a random document and click details.
4. choose run action.
5. Execute script and choose the javascript you created above.
6. finish it et voila you are a siteManager of the site you want to delete and can now choose to do so from share.

buxtonmarauder
Champ in-the-making
Champ in-the-making
Do you honestly think thats an appropriate method for people to use who are not programmers ?

lotharmärkle
Champ in-the-making
Champ in-the-making
The suggested workaround for the missing Delete-Button for admins in the share-UI can be easily done without programming through the User-and-Group Administration.
Just put yourself in the SiteManager Group of the site you would like to delete.

buxtonmarauder
Champ in-the-making
Champ in-the-making
Thanks Lothar..

Can you be a little more explicit please ?

Can you provide step-by-step instructions for your suggestion ?

e.g. are you suggesting using the share interface or the alfresco interface ?

lotharmärkle
Champ in-the-making
Champ in-the-making
Use the share interface, it is more comfortable.

Just add yourself to the SiteManager group as I suggested. See here on how to add a user to a group: http://docs.alfresco.com/4.0/topic/com.alfresco.enterprise.doc/tasks/at-adminconsole-group-membershi.... If you are an administrator this should be quite familiar - if not read the docs :wink:

The group is named after your site and the role. The structure is:

site_mysite
  |- site_mysite_SiteManager

After this you will be a member of the site (without invitation process) and have the site-delete button available.

hth,
  lothar

buxtonmarauder
Champ in-the-making
Champ in-the-making
Thanks Lothar..

Your link points to documentation for v4.0

I have access to a 4.0 instance and your instructions are correct for that version.

However, if I look at the same screen on v3.4 the site specific admin groups don't show up..

My original question pertained to v3.4..

In that version, I cannot see how to perform this action within the Share interface.

miguelperdomo
Champ in-the-making
Champ in-the-making
Thanks Mysha,
Your post save me! Smiley Happy
Even if I'm not a programmer just with a bit of intention I managed to solve it!!
thanks again!