On Steam (from Valve) you would be entitled to a full refund in that scenario.
Valve offers full refunds for any game you have played for less than two hours and owned for less than two weeks. In some other situations, they have also applied refunds outside that policy where the game turned out to be a fraud or something.
There are also many titles in people's Steam libraries that are no longer offered on Steam, but you can still download and play if you purchased it prior to it being pulled from Steam.