In Joomla Administrator, for removing the quick icons from the control panel :
Go to the \administrator\modules\mod_quickicon\mod_quickicon.php and comment out the quickiconButton.
For removing the menus and submenus from the Administrator main menu tab :
Go to the \administrator\modules\mod_menu\helper.php and comment out the unwanted menu or submenu sections.