{"action":"created","issue":{"url":"https://api.github.com/repos/USGS-R/sbtools/issues/91","labels_url":"https://api.github.com/repos/USGS-R/sbtools/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/USGS-R/sbtools/issues/91/comments","events_url":"https://api.github.com/repos/USGS-R/sbtools/issues/91/events","html_url":"https://github.com/USGS-R/sbtools/issues/91","id":99734871,"number":91,"title":"simplify/speed up deleting an item","user":{"login":"aappling-usgs","id":12039957,"avatar_url":"https://avatars.githubusercontent.com/u/12039957?v=3","gravatar_id":"","url":"https://api.github.com/users/aappling-usgs","html_url":"https://github.com/aappling-usgs","followers_url":"https://api.github.com/users/aappling-usgs/followers","following_url":"https://api.github.com/users/aappling-usgs/following{/other_user}","gists_url":"https://api.github.com/users/aappling-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/aappling-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aappling-usgs/subscriptions","organizations_url":"https://api.github.com/users/aappling-usgs/orgs","repos_url":"https://api.github.com/users/aappling-usgs/repos","events_url":"https://api.github.com/users/aappling-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/aappling-usgs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-08-07T21:44:12Z","updated_at":"2015-09-10T18:18:42Z","closed_at":null,"body":"you only have to delete child items, not child files, before you delete an item. you also probably shouldn't have to wait once you've told SB to delete the child items. we should first collect a list of SB IDs and then delete them all by ID, rather than paging through the search results, deleting one page worth, and then going to the next page of search results. \r\n\r\nalso, you can delete multiple files at once. see my.usgs.gov/confluence/display/sciencebase/DELETE: send an array of JSON ids to catalog/items as your POST body. send an HTTP:DELETE. you can only request to delete so many at a time, though. also, one user was getting a 405 error and discovered that it helped to make sure his basic auth header was being sent in with the request."},"comment":{"url":"https://api.github.com/repos/USGS-R/sbtools/issues/comments/139333409","html_url":"https://github.com/USGS-R/sbtools/issues/91#issuecomment-139333409","issue_url":"https://api.github.com/repos/USGS-R/sbtools/issues/91","id":139333409,"user":{"login":"sckott","id":577668,"avatar_url":"https://avatars.githubusercontent.com/u/577668?v=3","gravatar_id":"","url":"https://api.github.com/users/sckott","html_url":"https://github.com/sckott","followers_url":"https://api.github.com/users/sckott/followers","following_url":"https://api.github.com/users/sckott/following{/other_user}","gists_url":"https://api.github.com/users/sckott/gists{/gist_id}","starred_url":"https://api.github.com/users/sckott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sckott/subscriptions","organizations_url":"https://api.github.com/users/sckott/orgs","repos_url":"https://api.github.com/users/sckott/repos","events_url":"https://api.github.com/users/sckott/events{/privacy}","received_events_url":"https://api.github.com/users/sckott/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T18:18:42Z","updated_at":"2015-09-10T18:18:42Z","body":"@aappling-usgs @lawinslow so where does this leave us with this issue?"}}