Search code examples
azureazure-functionsazure-eventhubazure-eventgridhub

Not able to Delete an event Hub in Azure


So I have created an event hub and linked a Kafka Service with it. I was able to successfully send the events to event hub, but I made an error while creating partitions in the event hub.

Not I want to Delete the event Hub and recreate it with the same name. But for some reason when I Delete it, Azure does not seems to remove it from main name space.

I can still see the event hub..

I even checked the activity logs and I can see that it is deleted, but for some reason I still see it.

PARTITION COUNT : 2 MESSAGE RETENTION: 7


Solution

  • Auto topic creation is ON by default so Kafka producer keeps re-creating the eventhub when you delete it. You can either stop the Kafka producers or pick another eventhub name.