{"action":"opened","issue":{"url":"https://api.github.com/repos/geosolutions-it/crop-information-portal/issues/140","labels_url":"https://api.github.com/repos/geosolutions-it/crop-information-portal/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/geosolutions-it/crop-information-portal/issues/140/comments","events_url":"https://api.github.com/repos/geosolutions-it/crop-information-portal/issues/140/events","html_url":"https://github.com/geosolutions-it/crop-information-portal/issues/140","id":130659685,"number":140,"title":"Create a page on how to remove a granule from NDVI","user":{"login":"offtherailz","id":1279510,"avatar_url":"https://avatars.githubusercontent.com/u/1279510?v=3","gravatar_id":"","url":"https://api.github.com/users/offtherailz","html_url":"https://github.com/offtherailz","followers_url":"https://api.github.com/users/offtherailz/followers","following_url":"https://api.github.com/users/offtherailz/following{/other_user}","gists_url":"https://api.github.com/users/offtherailz/gists{/gist_id}","starred_url":"https://api.github.com/users/offtherailz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offtherailz/subscriptions","organizations_url":"https://api.github.com/users/offtherailz/orgs","repos_url":"https://api.github.com/users/offtherailz/repos","events_url":"https://api.github.com/users/offtherailz/events{/privacy}","received_events_url":"https://api.github.com/users/offtherailz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-02T11:55:35Z","updated_at":"2016-02-02T11:55:35Z","closed_at":null,"body":"using rest interface a user should use curl to get the id of the granule he want to remove.\r\n\r\n`GET /geoserver/rest/workspaces/ndvi/coveragestores/ndvi/coverages/ndvi/index/granules.json` \r\n\r\nResponse: \r\n```\r\n{  \r\n   \"type\":\"FeatureCollection\",\r\n   \"bbox\":[  \r\n      59.7633927459,\r\n      23.0580358005,\r\n      80.4419634523,\r\n      37.6919644531\r\n   ],\r\n   \"crs\":{  \r\n      \"type\":\"name\",\r\n      \"properties\":{  \r\n         \"name\":\"EPSG:4326\"\r\n      }\r\n   },\r\n   \"features\":[  \r\n      {  \r\n         \"type\":\"Feature\",\r\n         \"geometry\":{  \r\n            \"type\":\"Polygon\",\r\n            \"coordinates\":[  \r\n               [  \r\n                  [  \r\n                     59.7723,\r\n                     23.067\r\n                  ],\r\n                  [  \r\n                     59.7723,\r\n                     37.692\r\n                  ],\r\n                  [  \r\n                     80.433,\r\n                     37.692\r\n                  ],\r\n                  [  \r\n                     80.433,\r\n                     23.067\r\n                  ],\r\n                  [  \r\n                     59.7723,\r\n                     23.067\r\n                  ]\r\n               ]\r\n            ]\r\n         },\r\n        \"properties\":{  \r\n            \"location\":\"dv_20130101_20130110.tif\",\r\n            \"time\":\"2013-01-01T00:00:00.000+0000\",\r\n            \"endtime\":\"2013-01-10T00:00:00.000+0000\"\r\n         },\r\n         \"id\":\"ndvi.1\"\r\n      },\r\n   [...]\r\n  ]\r\n}\r\n```\r\n\r\nThen he can use the same interface to remove the granule by id : \r\n\r\n`DELETE /geoserver/rest/workspaces/ndvi/coveragestores/ndvi/coverages/ndvi/index/granules/<granuleId>.json` (to be tested)\r\n\r\nE.g. : \r\n`DELETE /geoserver/rest/workspaces/ndvi/coveragestores/ndvi/coverages/ndvi/index/granules/ndvi.1.json` (to be tested)"}}