Added delete routine to modelfile