I used this in one of my scripts:
for displayID in range(1,image.ID+50):
display=gimp._id2display(displayID)
if isinstance(display,gimp.Display):
#print 'Image: %d; display %d' % (image.ID,displayID)
break
if not display:
raise Exception('Display not found')
gimp.delete(display)
However, there is no way to make sure that the display you found really belongs to the image (even if starting at image.ID instead of 0 covers your *ss as long as there is only one display for each image opened before the one you are working with).