Gigantor the space age robot? I know it had a sequel to the old sixties series. It was used as a 'guardian of the peace' and had rockets to fly with
https://en.m.wikipedia.org/wiki/Gigantor
YouTube link to the sequel series, possibly what you viewed, he can be seen flying about five seconds into the intro