Add delete/1 function to generated models and remove compiler warnings.