code: @DELETE
    @Deprecated
    @Path("/{dataSourceName}")
    @ResourceFilters(DatasourceResourceFilter.class)
    @Produces(MediaType.APPLICATION_JSON)
    public Response deleteDataSource(
        @PathParam("dataSourceName") final String dataSourceName,
        @QueryParam("kill") final String kill,
        @QueryParam("interval") final String interval
    )
    {
      if (indexingServiceClient == null) {
        return Response.ok(ImmutableMap.of("error", "no indexing service found")).build();
      }
  
      if (kill != null && Boolean.valueOf(kill)) {
        try {
          indexingServiceClient.killSegments(dataSourceName, Intervals.of(interval));
        }
        catch (IllegalArgumentException e) {
          return Response.status(Response.Status.BAD_REQUEST)
                         .entity(
                             ImmutableMap.of(
                                 "error",
                                 "Exception occurred. Probably the interval is invalid",
                                 "message",
                                 e.toString()
                             )
                         )
                         .build();
        }
        catch (Exception e) {
          return Response.serverError().entity(
              ImmutableMap.of(
                  "error",
                  "Exception occurred. Are you sure you have an indexing service?",
                  "message",
                  e.toString()
              )
          )
                         .build();
        }
      } else {
        if (!databaseSegmentManager.removeDataSource(dataSourceName)) {
          return Response.noContent().build();
        }
      }
  
      return Response.ok().build();
    }
docs: /* When this method is removed, a new method needs to be introduced corresponding to
  the end point "DELETE /druid/coordinator/v1/datasources/{dataSourceName}" (with no query parameters).
  Ultimately we want to have no method with kill parameter -
  DELETE `{dataSourceName}` will be used to disable datasource and
  DELETE `{dataSourceName}/intervals/{interval}` will be used to nuke segments