To delete all empty rows and columns in a table, place the cursor in the table, and click Delete Empty Rows/Columns (see below).
This button is found on the TABLE TOOLS: LAYOUT tab, which becomes visible when the cursor is placed in a table.
This button is found on the Merops: Reviewing toolbar.