I found a issue in the Nokia 6600 MIDP implementation which doesn't seem to have been discussed previously. Hopefully, this could help somebody.
When creating a RecordEnumeration using RecordStore.enumerateRecords, the parameter keepUpdated is supposed to keep the RecordEnumeration updated:
Thus, this code would delete each record in this enumeration:
Sadly, the 6600 doesn't seem to be able to keep renum updated, resulting in all records not being deleted if there are more than one. Here's a fix:
This will probably decrease effeciency but at least loop the records correctly.