{"action":"created","issue":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/1067","labels_url":"https://api.github.com/repos/gulpjs/gulp/issues/1067/labels{/name}","comments_url":"https://api.github.com/repos/gulpjs/gulp/issues/1067/comments","events_url":"https://api.github.com/repos/gulpjs/gulp/issues/1067/events","html_url":"https://github.com/gulpjs/gulp/pull/1067","id":75875451,"number":1067,"title":"edit the wrong code in doc 'delete-files-folder.md'","user":{"login":"soliury","id":5032079,"avatar_url":"https://avatars.githubusercontent.com/u/5032079?v=3","gravatar_id":"","url":"https://api.github.com/users/soliury","html_url":"https://github.com/soliury","followers_url":"https://api.github.com/users/soliury/followers","following_url":"https://api.github.com/users/soliury/following{/other_user}","gists_url":"https://api.github.com/users/soliury/gists{/gist_id}","starred_url":"https://api.github.com/users/soliury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soliury/subscriptions","organizations_url":"https://api.github.com/users/soliury/orgs","repos_url":"https://api.github.com/users/soliury/repos","events_url":"https://api.github.com/users/soliury/events{/privacy}","received_events_url":"https://api.github.com/users/soliury/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-13T07:04:53Z","updated_at":"2015-07-03T22:42:39Z","closed_at":"2015-07-03T22:42:39Z","pull_request":{"url":"https://api.github.com/repos/gulpjs/gulp/pulls/1067","html_url":"https://github.com/gulpjs/gulp/pull/1067","diff_url":"https://github.com/gulpjs/gulp/pull/1067.diff","patch_url":"https://github.com/gulpjs/gulp/pull/1067.patch"},"body":"In the older doc, the way to delete file in pipeline is wrong .\r\n\r\nSo I change to the right way.\r\n\r\nThe right way to delete pipeline should like this:\r\n\r\n```\r\nvar gulp = require('gulp');\r\nvar stripDebug = require('gulp-strip-debug'); // only as an example\r\nvar del = require('del');\r\nvar vinylPaths = require('vinyl-paths');\r\n\r\ngulp.task('clean', function () {\r\n    var vp=vinylPaths();\r\n\r\n     gulp.src('1.js')\r\n     .pipe(vp)\r\n    .pipe(stripDebug())\r\n    .pipe(gulp.dest('dist'))\r\n    .on('end',function(){\r\n        del(vp.paths);\r\n    })\r\n});\r\n\r\ngulp.task('default', ['clean']); \r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/gulpjs/gulp/issues/comments/118435575","html_url":"https://github.com/gulpjs/gulp/pull/1067#issuecomment-118435575","issue_url":"https://api.github.com/repos/gulpjs/gulp/issues/1067","id":118435575,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T22:42:39Z","updated_at":"2015-07-03T22:42:39Z","body":"The recipe is correct. If the paths are changed it's a bug in `vinyl-fs`."}}