How to delete an object inside list with loop

Yes, to delete you need to provide the index.