You can turn off debugging when exporting projects, which will remove the console from the exported executable: Godot Q&A Answer.
If you want to remove the console from the Godot editor, there appears to be an option for that in the editor settings: Godot Q&A Answer