Hi Kiran,
One option is deleting the buttons from toolbar through method delet_all_buttons from class cl_gui_toolbar.
You can refer to program R_ALV_TREE_TOOLBAR_MANAGER
Below is the code extracted from the program:
* get toolbar control
CALL METHOD tree1->get_toolbar_object
IMPORTING
er_toolbar = mr_toolbar.
CHECK NOT mr_toolbar IS INITIAL.
lt_button_alv = mr_toolbar->m_table_button.
CALL METHOD mr_toolbar->delete_all_buttons
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
* Add Standard Button to toolbar (for Delete Subtree)
CALL METHOD mr_toolbar->add_button
EXPORTING
fcode = 'DELETE'
icon = '@18@'
butn_type = cntb_btype_button
text = ''
quickinfo = 'Delete subtree'. "#EC NOTEXT
Regards,
Marcos.