If have depreciation of asset using straight line method that will have residual value of zero in te

If have depreciation of asset using straight line method that will have residual value of zero in ten years In the middle of period part of asset is disposed of how do you alter the depreciation schedule ? Does it still end in ten years ?