With regard to ebay, you can end a listing without restriction if the listing has more than 12 hours left. If there are less than 12 hour there are some restrictions to cancelling.

Thus, if you list on ebay and then sell the item somewhere else you can cancel your listing without restriction, as long as there are still 12 hours or more left in the listing. If there are less than 12 hours then other rules apply.