Adds table-delete command. Refactoring