destroying generated models