code: def delete_phenotype(phenotype_id):
      
      ind_id = request.form['ind_id']
      ind_obj = app.db.individual(ind_id)
      try:
          app.db.remove_phenotype(ind_obj, phenotype_id)
      except RuntimeError as error:
          return abort(500, error.message)
      return redirect(request.referrer)
docs: Delete phenotype from an individual.