Cocaine addiction can only be treated by identifying the root causes of the addiction and practising healthy coping mechanisms to deal with cravings. This is achieved at a rehabilitation centre, where you will also detox from cocaine safely before starting your programme.