I am trying to remove and replace the "Delete this site" on Site settings page. Can anyone see what is wrong?
My current code looks like this:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<HideCustomAction
Id="HideDeleteWeb"
GroupId="SiteAdministration"
HideActionId="DeleteWeb"
Location="Microsoft.SharePoint.SiteSettings"
>
</HideCustomAction>
<CustomAction
Description="Replaces the 'Delete this site'"
Title="REPLACE"
Id="{E538E8C7-65DA-454E-AD87-4A603B6CC569}"
GroupId="SiteAdministration"
Location="Microsoft.SharePoint.SiteSettings"
xmlns="http://schemas.microsoft.com/sharepoint/"
>
</CustomAction>
</Elements>
This gives me the following layout. "Delete this site" is still visable and "REPLACE" is in the wrong place.
I followed the instructions on the following site but the post is old: https://social.msdn.microsoft.com/Forums/office/en-US/575d5228-0ac5-4a1b-a435-da35b9392706/disable-delete-this-site-option?forum=sharepointcustomizationlegacy
The "Delete this site" link is under the "Site Actions" heading. However, on Microsoft's "Default Custom Action Locations and IDs" page there is not a "Site Actions" group: https://msdn.microsoft.com/en-us/library/office/bb802730.aspx