Disable sub menu

Hello All,

I need to disable the submenu of my website.

Like:

A. Parent 1
  1. Child 1
  2. Child 2
B. Parent 2
  1. Child 1
  2. Child 2
B. Parent 3
  1. Child 1
  2. Child 2

Thus in these, i need to disable the child 1 and 2 from all and need Parents to be shown.

Note: I don’t want to unpublish them. only and only want to hide them from the main menu.

Can anyone tell me how to do it?

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed