Should I delete `sudo` commands on Code Ocean?

Yes. You are the root user on your Code Ocean Capsule

You are the root user on Code Ocean. By default, it is unnecessary to tell the machine that you are the root user.

You can install sudo via apt-get and then use the command, but this is unnecessary. Delete all instances of sudo in your scripts to get them running on Code Ocean.