added code for delete of application in profile