How to undo `bench setup sudoers`

How do I reset/remove/delete/undo the command bench setup sudoers?
Now almost everytime I do sudo from a user (not root) I got this:

>>> /etc/sudoers.d/frappe: syntax error near line 5 <<<
>>> /etc/sudoers.d/frappe: syntax error near line 6 <<<
>>> /etc/sudoers.d/frappe: syntax error near line 10 <<<
>>> /etc/sudoers.d/frappe: syntax error near line 11 <<<
>>> /etc/sudoers.d/frappe: syntax error near line 15 <<<
>>> /etc/sudoers.d/frappe: syntax error near line 18 <<<
>>> /etc/sudoers.d/frappe: syntax error near line 19 <<<
sudo: parse error in /etc/sudoers.d/frappe near line 5
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

Need your help. Thank you.

bench setup sudoers writes to /etc/sudoers.d/frappe which should look something like

frappe ALL = (root) /usr/sbin/service
frappe ALL = (root) NOPASSWD: /usr/sbin/service nginx *
frappe ALL = (root) NOPASSWD: /usr/sbin/service supervisord *


frappe ALL = (root) /usr/bin/systemctl
frappe ALL = (root) NOPASSWD: /usr/bin/systemctl * nginx
frappe ALL = (root) NOPASSWD: /usr/bin/systemctl * supervisord
frappe ALL = (root) NOPASSWD: /bin/supervisorctl *


frappe ALL = (root) NOPASSWD: /opt/certbot-auto
frappe ALL = (root) NOPASSWD: /usr/bin/bench
Defaults:frappe !requiretty

You can delete this file to make the problem go away. If it doesn’t, then please post the contents of the file.

Note: Deleting this file will also cause bench commands to not work when used with sudo

You can refer to the code
https://github.com/frappe/bench/blob/develop/bench/utils.py#L407-L434

Here’s the template file