How to delete an existing menu?
bpy.types.TOPBAR_HT_upper_bar.draw expects a draw function. Here is an example for how to replace the built-in draw function with your own:

import bpy

def draw_function(self):
    self.layout.label(text="New Custom Menu")

bpy.types.TOPBAR_HT_upper_bar.draw = draw_function