{"action":"created","issue":{"url":"https://api.github.com/repos/chirag04/mail-listener2/issues/36","labels_url":"https://api.github.com/repos/chirag04/mail-listener2/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/chirag04/mail-listener2/issues/36/comments","events_url":"https://api.github.com/repos/chirag04/mail-listener2/issues/36/events","html_url":"https://github.com/chirag04/mail-listener2/issues/36","id":60822760,"number":36,"title":"How can i delete every email i fetch?","user":{"login":"gerbil","id":455953,"avatar_url":"https://avatars.githubusercontent.com/u/455953?v=3","gravatar_id":"","url":"https://api.github.com/users/gerbil","html_url":"https://github.com/gerbil","followers_url":"https://api.github.com/users/gerbil/followers","following_url":"https://api.github.com/users/gerbil/following{/other_user}","gists_url":"https://api.github.com/users/gerbil/gists{/gist_id}","starred_url":"https://api.github.com/users/gerbil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerbil/subscriptions","organizations_url":"https://api.github.com/users/gerbil/orgs","repos_url":"https://api.github.com/users/gerbil/repos","events_url":"https://api.github.com/users/gerbil/events{/privacy}","received_events_url":"https://api.github.com/users/gerbil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T14:01:16Z","updated_at":"2015-03-12T14:08:17Z","closed_at":null,"body":"Right now the only option is to set them as SEEN, but i want to flag them as deleted."},"comment":{"url":"https://api.github.com/repos/chirag04/mail-listener2/issues/comments/78485723","html_url":"https://github.com/chirag04/mail-listener2/issues/36#issuecomment-78485723","issue_url":"https://api.github.com/repos/chirag04/mail-listener2/issues/36","id":78485723,"user":{"login":"gerbil","id":455953,"avatar_url":"https://avatars.githubusercontent.com/u/455953?v=3","gravatar_id":"","url":"https://api.github.com/users/gerbil","html_url":"https://github.com/gerbil","followers_url":"https://api.github.com/users/gerbil/followers","following_url":"https://api.github.com/users/gerbil/following{/other_user}","gists_url":"https://api.github.com/users/gerbil/gists{/gist_id}","starred_url":"https://api.github.com/users/gerbil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerbil/subscriptions","organizations_url":"https://api.github.com/users/gerbil/orgs","repos_url":"https://api.github.com/users/gerbil/repos","events_url":"https://api.github.com/users/gerbil/events{/privacy}","received_events_url":"https://api.github.com/users/gerbil/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T14:08:17Z","updated_at":"2015-03-12T14:08:17Z","body":"I think i've found a way to do it: \r\nadd this one after line 127 of index.js ->\r\n```javascript\r\nself.imap.setFlags(result, 'Deleted', function(err) { console.log(err); });\r\n```"}}