added delete service to delete memory