If configured by the SharePoint administrator, site collection retention warnings are sent to site collection owners whose sites have not been accessed for a predefined length of time. These emails should prompt owners to delete unused content, thereby conserving SharePoint server hard disk space. The customization of retention warnings is a bit simpler than alerts. There is only one fileDEADWEB.XMLand the available CAML is significantly restricted. An example retention warning email is shown in Figure 5.8. Figure 5.8. Inactive site collection email.DEADWEB.XML is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\XML. Its default contents are shown in Listing 5.5. Listing 5.5. DEADWEB.XML
DEADWEB.XML is divided between two xml elements: Confirmation and AutoDeleteWarning. AutoDeleteWarning defines the email when the site will be deleted automatically ("Automatically delete the site collection if use is not confirmed" is checked in Figure 5.9). Confirmation defines the email when the site will not be automatically deleted ("Automatically delete the site collection if use is not confirmed" is not checked). Figure 5.9. Confirmation and Auto-Deletion Settings.Confirmation and AutoDeleteWarning subject and body tags in Listing 5.5 are self-explanatory. The interesting references are |0 and |1. These reference the use confirmation and site collection deletion full URLs, respectively. In our example, they were translated to http://moose:81//_layouts/1033/useconfirmation.aspx and http://moose:81//_layouts/1033/WebAdmin.aspx. |