cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot delete site as sitemanager (Alfresco 4.0.b)

locutus
Champ in-the-making
Champ in-the-making
Running CentOS 5.9 and Alfresco 4.0.b.

I've been all over Google and still cannot figure this one out.

I am relatively new to Alfresco, trying to delete a site.  From my research, this can only be done through the Share interface.  This also requires a person with sitemanager privs to be able to see the magic delete button when doing a scan for sites.

I've set myself as site manager based on java script I found at http://forums.alfresco.com/forum/end-user-discussions/alfresco-share/site-has-no-managers-ugh-091720... (post #13).

I confirmed I show up as site manager back in the share interface, repository, select the site, manage permissions.  From there, I see admin as site manager.

The thing I'm confused about is this site doesn't ever show up in My Sites even thought I am sitemanager.  Should it?

One other thing, the account that originally created the site has been deleted.  If I try to recreate a user with the same name and login as it, I still don't see the Delete button.
4 REPLIES 4

sujaypillai
Confirmed Champ
Confirmed Champ
Try this through CURL :

curl -H "Accept: application/json" -H "Content-type: application/json" -X DELETE –user admin:admin123 http://192.168.227.1:8080/alfresco/service/api/sites/ttt


<strong>where ttt is site shortName</strong>

fakir22
Champ in-the-making
Champ in-the-making
works fine on Alfresco 4.2.0. Thanks a lot for this solution !

ddelapasse
Champ in-the-making
Champ in-the-making
I have a similar problem.  I have two accounts that are site admins, but neither can delete the sample site.  It said "deleting site" but then "site can not deleted" with nothing in the log files.  I tried the above curl command and get:

"Request could not be completed due to a conflict with the current state of the resource.

Can anyone suggest something else to try?  Explorer won't let me either, it says the folder must be deleted via Share.

I have 4.2.f.

sujaypillai
Confirmed Champ
Confirmed Champ
Hi,

When you say sample site - is it the SWSDP site which ships along with Alfresco?

<blockquote>"Request could not be completed due to a conflict with the current state of the resource." </blockquote>
This means that any previous request for delete is being processed by system in background but not visible on UI.

Did you try restart alfresco service and a delete thereafter?