--- /dev/null
+DestroyKafkaConsumer <- function(consumer.base.uri) {
+ response <- DELETE(url = consumer.base.uri,
+ content_type("application/vnd.kafka.v2+json"))
+ if(response$status_code == 204) {
+ return(TRUE)
+ } else stop(response)
+}
\ No newline at end of file
createPlot(apachelog)
# Remove the consumer
-DELETE(url = consumerDetails$base_uri,
- content_type("application/vnd.kafka.v2+json"))
+source("R/DestroyKafkaConsumer.R")
+response <- DestroyKafkaConsumer(consumer.base.uri = consumerDetails$base_uri)