updates deletion code to use 'delete' instead of 'inactive'.