{"action":"closed","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3850","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3850/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3850/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3850/events","html_url":"https://github.com/sequelize/sequelize/issues/3850","id":83851668,"number":3850,"title":"Feature Request: Implement removing hooks","user":{"login":"ljowen","id":1527882,"avatar_url":"https://avatars.githubusercontent.com/u/1527882?v=3","gravatar_id":"","url":"https://api.github.com/users/ljowen","html_url":"https://github.com/ljowen","followers_url":"https://api.github.com/users/ljowen/followers","following_url":"https://api.github.com/users/ljowen/following{/other_user}","gists_url":"https://api.github.com/users/ljowen/gists{/gist_id}","starred_url":"https://api.github.com/users/ljowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljowen/subscriptions","organizations_url":"https://api.github.com/users/ljowen/orgs","repos_url":"https://api.github.com/users/ljowen/repos","events_url":"https://api.github.com/users/ljowen/events{/privacy}","received_events_url":"https://api.github.com/users/ljowen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sequelize/sequelize/labels/feature","name":"feature","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T05:35:34Z","updated_at":"2015-06-17T07:34:48Z","closed_at":"2015-06-17T07:34:48Z","body":"Say I add a hook at runtime:\r\n\r\n```javascript\r\nmodel.addHook('afterUpdate', 'myHook', function(instance, cb) {\r\n     //Do stuff\r\n})      \r\n```\r\n\r\nIt would be great to be able to remove it:\r\n\r\n```javascript\r\n model.removeHook('afterUpdate', 'myHook')\r\n```\r\n"}}