Coordinator API doesn't show segments with used = 0 in metadata storage

Hi!

I am developing a plugin to drop from HDFS all segments with ‘used=0’ in metadata storage. I need known the segments whose field used is 0 but the coordinator API doesn’t show it me:

POST: `/druid/coordinator/v1/metadata/datasources/{dataSourceName}/segments

or

POST: ```/druid/coordinator/v1/metadata/datasources/{dataSourceName}/segments?full

only match with segments whose field used is 1.

Any idea?

Thanks!
``

Hi,
there is already a feature to turn on deleting unused segments from deep storage.

http://druid.io/docs/latest/configuration/coordinator.html - Look for “druid.coordinator.kill.on” config.