Update purgeapp.bash