{"action":"created","issue":{"url":"https://api.github.com/repos/aheckmann/gridfs-stream/issues/82","labels_url":"https://api.github.com/repos/aheckmann/gridfs-stream/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/aheckmann/gridfs-stream/issues/82/comments","events_url":"https://api.github.com/repos/aheckmann/gridfs-stream/issues/82/events","html_url":"https://github.com/aheckmann/gridfs-stream/issues/82","id":102111634,"number":82,"title":"Remove file does not delete chunks","user":{"login":"slasktrat","id":11269880,"avatar_url":"https://avatars.githubusercontent.com/u/11269880?v=3","gravatar_id":"","url":"https://api.github.com/users/slasktrat","html_url":"https://github.com/slasktrat","followers_url":"https://api.github.com/users/slasktrat/followers","following_url":"https://api.github.com/users/slasktrat/following{/other_user}","gists_url":"https://api.github.com/users/slasktrat/gists{/gist_id}","starred_url":"https://api.github.com/users/slasktrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slasktrat/subscriptions","organizations_url":"https://api.github.com/users/slasktrat/orgs","repos_url":"https://api.github.com/users/slasktrat/repos","events_url":"https://api.github.com/users/slasktrat/events{/privacy}","received_events_url":"https://api.github.com/users/slasktrat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-20T10:41:21Z","updated_at":"2015-12-08T08:45:50Z","closed_at":null,"body":"When i delete a file, all related chunks are left behind filling up storage space. Am I supposed to clear the chunks manually?\r\n\r\n```javascript\r\ngfs.collection(req.params.bucket).remove({_id:file._id}, function (err) {\r\n                if (err) {\r\n                    return false;\r\n                }\r\n                return true;\r\n            });\r\n```"},"comment":{"url":"https://api.github.com/repos/aheckmann/gridfs-stream/issues/comments/162815317","html_url":"https://github.com/aheckmann/gridfs-stream/issues/82#issuecomment-162815317","issue_url":"https://api.github.com/repos/aheckmann/gridfs-stream/issues/82","id":162815317,"user":{"login":"slasktrat","id":11269880,"avatar_url":"https://avatars.githubusercontent.com/u/11269880?v=3","gravatar_id":"","url":"https://api.github.com/users/slasktrat","html_url":"https://github.com/slasktrat","followers_url":"https://api.github.com/users/slasktrat/followers","following_url":"https://api.github.com/users/slasktrat/following{/other_user}","gists_url":"https://api.github.com/users/slasktrat/gists{/gist_id}","starred_url":"https://api.github.com/users/slasktrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slasktrat/subscriptions","organizations_url":"https://api.github.com/users/slasktrat/orgs","repos_url":"https://api.github.com/users/slasktrat/repos","events_url":"https://api.github.com/users/slasktrat/events{/privacy}","received_events_url":"https://api.github.com/users/slasktrat/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T08:45:50Z","updated_at":"2015-12-08T08:45:50Z","body":"Name of the file bucket where you stored the file. If no name specified, it defaults to 'fs'"}}