Remove a midi controller

Are you already on C12.0.10 ? There you can “manually” activate your MIDI controller via the big PLUS button and choose the right ports yourself. And you don’t have to delete your script. Just disable it if you do not need it temporarily.