Implemented API call to delete application and menu

removed debug code @Karthikeyan-V