I forward the reply to your question from our dev. team. Please check the below comments.
We have fixed the issue to show the app list up to date in the Home Application when the user executes the restart sam in the SSH.
Note: In our case app was successfully removed by com.webos.appInstallService/remove but the removed app is still showing in the Home Application when the user executes the restart sam in the SSH.
Root cause and Fix details :
When the restart sam command executes in the SSH, the com.webos.service.applicationmanager/listLaunchPoints method responds in the onFailure callback, so the Home application invokes the method again to get the latest application list.