def remove_content_type(app_label, model_name):
 try:
  ct = ContentType.objects.get(app_label=app_label, model=model_name.lower())
  ct.delete()
 except ContentType.DoesNotExist:
  pass

def remove_content_type ( app_label , model_name ) : try : ct = ContentType . objects . get ( app_label = app_label , model = model_name . lower ( ) ) ct . delete ( ) except ContentType . DoesNotExist : pass
delete from the django contenttype table .