Implemented API call to delete application and menu

use constructor method to set the role and menu object