Added delete functionality to base model class