django delete object from database from a list of ids code example
Example: delete database entry using name django
obj = get_object_or_404(modelname, name=name)
obj.delete()
obj = get_object_or_404(modelname, name=name)
obj.delete()