I read somewhere on this forum that Delta posts mileas as soon as the BP is swiped at the gate. By this logic, I would assume a "cancellation" of the flight will lead to all points being deducted again from the account by the same automated process they are put in. I would then assume miles will post once the new flight is made, and most likely being booked in to Y.