There is logic in tpkg to install packages in dependency order, but no logic to remove them in reverse dependency order.