refactored purge method
clean up location model