Unable to delete datasources

Hi,

I am trying to delete datasource “foo”.

I confirm that the datasource exists by running the following
command:

curl -v ‘GET’
“localhost:8081/druid/coordinator/v1/datasources”
Then, I (try to) delete datasource “foo” as follows:

curl -v ‘DELETE’
“localhost:8081/druid/coordinator/v1/datasources/foo”
The result looks like this:

{“tiers”:{"_default_tier":{“size”:43059169,“segmentCount”:1}},“segments”:{“maxTime”:“2017-03-22T00:00:00.000Z”,“size”:43059169,“minTime”:“2017-03-21T00:00:00.000Z”,“count”:1}}
Unfortunately, the above command does not have any affect, i.e.
the data are not deleted.

Do I miss something?

Above end point will just disable the datasource and not delete the segments.
To delete the segments send a DELETE request to -

  • /druid/coordinator/v1/datasources/{dataSourceName}/intervals/{interval}