The deleteVirtDomain.sh
script hook runs custom commands placed in the script file. The script is run whenever the specified domain is deleted.
Syntax: deleteVirtDomain.sh site
<n>
where <n> is the site identifier of the site being deleted. Information about the domain can be obtained by using the sitelookup API.
For example, you could use the script provided to notify Site Administrators whenever their sites are deleted. For more information, see the section Notifying Site Administrators When Sites Are Modified.