Delete corrupted object from zodb

Maybe you can first replace the object and then delete that. i.e:

from OFS.SimpleItem import SimpleItem
new_obj = SimpleItem(obj_id)
container._setOb(obj_id, new_obj)
container.manage_delObjects(ids=[obj_id])

where obj_id is the id of the corrupted object.