Thinning or removal of substrate