Add the functions application_remove, application_purged, module_purged, and script_remove.