factored cascading delete
adds exit to optionless scripts