{"action":"closed","issue":{"url":"https://api.github.com/repos/lopopolo/hyperbola-tools/issues/3","labels_url":"https://api.github.com/repos/lopopolo/hyperbola-tools/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/lopopolo/hyperbola-tools/issues/3/comments","events_url":"https://api.github.com/repos/lopopolo/hyperbola-tools/issues/3/events","html_url":"https://github.com/lopopolo/hyperbola-tools/issues/3","id":115808208,"number":3,"title":"Clean up old releases","user":{"login":"lopopolo","id":860434,"avatar_url":"https://avatars.githubusercontent.com/u/860434?v=3","gravatar_id":"","url":"https://api.github.com/users/lopopolo","html_url":"https://github.com/lopopolo","followers_url":"https://api.github.com/users/lopopolo/followers","following_url":"https://api.github.com/users/lopopolo/following{/other_user}","gists_url":"https://api.github.com/users/lopopolo/gists{/gist_id}","starred_url":"https://api.github.com/users/lopopolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lopopolo/subscriptions","organizations_url":"https://api.github.com/users/lopopolo/orgs","repos_url":"https://api.github.com/users/lopopolo/repos","events_url":"https://api.github.com/users/lopopolo/events{/privacy}","received_events_url":"https://api.github.com/users/lopopolo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-09T06:25:45Z","updated_at":"2015-11-15T05:23:35Z","closed_at":"2015-11-15T05:23:35Z","body":"[This stackoverflow post](http://stackoverflow.com/questions/4126869/bash-command-to-delete-all-but-last-5-directories) details a method of deleting all but the last `n` directories by mtime.\r\n\r\n```sh\r\nrm `ls -t | tail -n +6`\r\n```\r\n\r\nIf I want to use ctime instead of mtime, also use the `-U` flag.\r\n\r\nCreate scripts that can be run in a cron for both staging and live artifacts."}}