How can I delete a row from an ITable

I cannot seem to find your java API’s - Word or Slides.

Can you help me figure out a way to delete a row from an ITable object?

IShape shape = null;

shape = slide.findShapeByAltText(“mytable”);

ITable table = (ITable)shape;

IRow tblRow = table.getRows().get_Item(0);

//I need to delete the second row of this table

Hi John,

I have observed your requirement and suggest you to please try using the following sample code on your end to serve the purpose in order to remove the row from table.

table.getRows().removeAt(int rowIndex,boolean withAttachedRows);

I hope the shared information will be helpful.

Many Thanks,