The Supreme Court has cancelled disciplinary action that was brought against a judicial officer in Rajasthan.