how to delete an object in django models code example Example: django delete object SomeModel.objects.filter(id=id).delete()