Implemented API call to delete application and menu

@Karthikeyan-V remove multiple query and merge it as one.