Implemented API call to delete application and menu

@Karthikeyan-V  use sql constant directly, instead assigning to hql variable