i have an object say it as productObj
.
when I am iterating through this object if a particular condition is met I have to delete that value from that object.
something like
for data in productObj:
if data.count > 0:
data.delete()
if the count is greater than zero the data value should be deleted and the productObj
should be updated.