Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Delete Page Language Branch

Vote:
 

Hello,

I have a site that has been converted from the default languages to en-GB and all pages are en-GB except the start page which is still en and en-GB. I would like to remove the en version of the start but I can't find a way to do this without going into the database and deleting manually (which I'm nervous to do as I don't know exactly what I should or shouldn't be deleting).

Does anyone know how to do this?

Thanks in advance,

Mark

#83205
Mar 27, 2014 14:02
Vote:
 

As far as I'm aware it's not exposed in Admin UI so far. One of the options would be to do it via API. Do you have to provide this feature to your site's editors?

#83241
Mar 27, 2014 22:06
Vote:
 

No it's just a one off build task but I expect I might need to know how to do it for future projects (and it would be useeful to know)

#83259
Mar 28, 2014 9:52
Vote:
 

You can use one of these to remove it from visitors (to recyclebin or delete completely):

var repository = ServiceLocator.Current.GetInstance<IContentRepository>();

repository.MoveToWastebasket(reference, "{user}");
repository.Delete(reference, true, AccessLevel.NoAccess);

    

#83281
Mar 28, 2014 13:14
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.