{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails/issues/3324","labels_url":"https://api.github.com/repos/balderdashy/sails/issues/3324/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails/issues/3324/comments","events_url":"https://api.github.com/repos/balderdashy/sails/issues/3324/events","html_url":"https://github.com/balderdashy/sails/issues/3324","id":112951703,"number":3324,"title":"Destroy all Sails records from Model at once","user":{"login":"ytzvan","id":703873,"avatar_url":"https://avatars.githubusercontent.com/u/703873?v=3","gravatar_id":"","url":"https://api.github.com/users/ytzvan","html_url":"https://github.com/ytzvan","followers_url":"https://api.github.com/users/ytzvan/followers","following_url":"https://api.github.com/users/ytzvan/following{/other_user}","gists_url":"https://api.github.com/users/ytzvan/gists{/gist_id}","starred_url":"https://api.github.com/users/ytzvan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytzvan/subscriptions","organizations_url":"https://api.github.com/users/ytzvan/orgs","repos_url":"https://api.github.com/users/ytzvan/repos","events_url":"https://api.github.com/users/ytzvan/events{/privacy}","received_events_url":"https://api.github.com/users/ytzvan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-23T05:02:23Z","updated_at":"2015-10-23T18:38:02Z","closed_at":null,"body":"Hello, is there a way to destroy all the records of model, instead of using Model.destroy({id:id}) ?\r\nI've been thinking deleting one by one using a for loop, but this will be end in a performance issue. I need to destroy all the rows at once. \r\nThanks. "},"comment":{"url":"https://api.github.com/repos/balderdashy/sails/issues/comments/150658646","html_url":"https://github.com/balderdashy/sails/issues/3324#issuecomment-150658646","issue_url":"https://api.github.com/repos/balderdashy/sails/issues/3324","id":150658646,"user":{"login":"crobinson42","id":5973579,"avatar_url":"https://avatars.githubusercontent.com/u/5973579?v=3","gravatar_id":"","url":"https://api.github.com/users/crobinson42","html_url":"https://github.com/crobinson42","followers_url":"https://api.github.com/users/crobinson42/followers","following_url":"https://api.github.com/users/crobinson42/following{/other_user}","gists_url":"https://api.github.com/users/crobinson42/gists{/gist_id}","starred_url":"https://api.github.com/users/crobinson42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crobinson42/subscriptions","organizations_url":"https://api.github.com/users/crobinson42/orgs","repos_url":"https://api.github.com/users/crobinson42/repos","events_url":"https://api.github.com/users/crobinson42/events{/privacy}","received_events_url":"https://api.github.com/users/crobinson42/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T18:38:02Z","updated_at":"2015-10-23T18:38:02Z","body":"Just a pointer - you should start using sails-mongo in dev if you plan on doing it in prod, for the sake of debugging and consistency.\n\n\n> On Oct 23, 2015, at 9:03 AM, Ytzvan Mastino <notifications@github.com> wrote:\n> \n> @japel <https://github.com/japel> Currently I'm using sails disk for development and testing purposes, but I'm production I'm going to use mongo.\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/balderdashy/sails/issues/3324#issuecomment-150618683>.\n> \n\n"}}