Modified deleteApplication api call