[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mosquitto-dev] Is there a function in the broker to "delete" a topic
|
Hi Andrew,
There's not a straightforward way to do this in the broker. You could
do what Nick suggested, then have a plugin deny access to outgoing
messages with zero length, if your clients can't cope with zero length
messages.
Regards,
Roger
On Fri, 5 Apr 2024 at 12:12, Andrew Thomas via mosquitto-dev
<mosquitto-dev@xxxxxxxxxxx> wrote:
>
> Hello all,
>
>
>
> I am customizing the mosquitto broker, and I would like to be able to “delete” a topic. As I understand it, that really just means removing retained messages for that topic. I realize that the topic will re-appear if a client sends a new message to it, but this would still be very useful for my application.
>
>
>
> Are there functions in the broker code that:
>
> Remove the retained message for a topic, and
> Remove the retained messages for a topic and all its descendants?
>
>
>
> Thanks,
>
> Andrew
>
>
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev