Removal of history and activities sub panel in leads module

I would like to remove the activities and history sub panel in leads module can you please help me how i can do it ?

Hey,

Create a php file in the folder below
public/legacy/custom/Extension/modules/Leads/Ext/Layoutdefs/.php {SuiteCRM 8}
or
custom/Extension/modules/Leads/Ext/Layoutdefs/.php {SuiteCRM 7}
put contents as

<?php
unset($layout_defs["Leads"]["subpanel_setup"]['activities']);
unset($layout_defs["Leads"]["subpanel_setup"]['history']);

Repair and rebuild