added delete functionality for applications.