Some repellent are effective and some are not. Used this before a few times, making sure to put some more out once it nearly gone or faded and it stopped cat using the area of the garden as the toilets:
http://www.amazon.co.uk/Get-Off-Repe.../dp/B000LS57O0

