Implemented API call to delete application and menu

@Karthikeyan-V  Add null check for apiCaller object