When I reload a QTableWidget I use the method clear()...but it only delete item text. It does not delete the columns and rows (items)?

Is there a method to delete rows and columns (items) in a QTableWidget?