remove_submenu() is the GtkMenuItem-specific version of the remove() found in GtkContainer. It is useful where a submenu needs to be removed or altered under given conditions within a script.