Select it with the black arrow, then press "Delete".
Is this a scripting question? What language? What version of ID? What have you tried so far, and where do you get stuck?
Do you need someone to write a script for you? Are you willing to pay for it?
var doc = app.activeDocument;
var myPages = app.activeDocument.pages;
for (var p = 0; p < myPages.length; p++)
var myGraphicFrames = app.activeDocument.pages[p].rectangles;
for (j = myGraphicFrames.length - 1; j >= 0; j--)
if (myGraphicFrames[j].graphics.length == 0)
app.selection = myGraphicFrames[j];
is there any other way to remove empty frame?