how to unset admin menu links programmatically? how to unset admin menu links programmatically ?

I have created a module with this hook in it 

function myModuleName_menu_link_alter(&amp;$item)
{   

//  dpm($item['link_path']);
     if($item['link_path']=="/admin/config/people")
    {
     $item=FALSE;
    }
}


the link path 

  "/admin/config/people"


is listed with dpm.

how can i remove it from the admin menu?

I have also tried with this hook 

  function my module_menu_alter(&amp;$items) {  

       // dpm($items['user/%user/cas']);
        unset($items['user/%user/cas']);
  }
hook_menu_alter is want you are looking for. The usage is exactly the same as your example, just don't forget to clear the caches afterwards.

Cheers!