Finally i get rid of save/load state functionality. i change the following:
1- This is for the gamepad.
From/opt/retropie/configs/all/retroarch-joypads
i remove the lines for save/load states.
2- This is for the keybord.
From /opt/retropie/configs/all/retroarch.cfg
i change the lines from
# input_save_state = f2
# input_load_state = f4
to
input_save_state = f22
input_load_state = f44
3- This is to hide save/load state option, in rgui quick menu.
i add to the/opt/retropie/configs/all/retroarch.cfg
the line quick_menu_show_save_load_state = "false"