This is a summary of your rights under the Consumer Rights Act 2015.
Rejecting a second-hand car
If there's a problem with a second-hand car soon after you've bought it - for example, the car develops a problem you wouldn't expect for the car's age and mileage, or it turns out not to be what you’d been led to expect - you may have the right to reject it and get your money back.
While there's no clear definition of what a reasonable time is, it probably needs to be within three to four weeks – less if it's an obvious problem.
And if you reject a second-hand car you must stop using it immediately.
The comment about warranty is superfluous as the law is probably better protection, even after the 30 days.
Returning a second-hand car
If you're past the first 30 days but a problem has arisen that you think would have been present at the time of purchase, then you're entitled to ask for a repair or replacement free of charge.
In most cases this will be a repair, whoever sold the car to you will usually be able to prove that the cost of replacing it would be disproportionate.
During the first six months after purchase it's the responsibility of the seller to prove the fault wasn't there, not for you to prove that it was.
But after the first six months, the onus will be on you to prove that the fault was present from the day you purchased the car.
If the attempt at a repair or replacement is unsuccessful, you're entitled to a refund.
But the car dealer can make a deduction from the refund after the first 30 days for 'fair use'.