Added method to delete analysis