JFK didn’t cancel it. He told the CIA clearly and directly that we would not intervene with US forces. They thought they could force his hand by putting him in a bind. He did the right thing to not get played. He stuck to his word against the trashy CIA.
Tell that to Miami’s Cuban population.