Skip to main content

[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
  • From: Andrew Thomas <andrew.thomas@xxxxxxxxxxx>
  • Date: Fri, 5 Apr 2024 14:58:25 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=skkynet.com; dmarc=pass action=none header.from=skkynet.com; dkim=pass header.d=skkynet.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NujdkZmN4fodHHtGKHvun7dgeXqGtYexjKpPe15iuxw=; b=CL7v8YcwuAs6uX5U3b2H+CQNfddMLpx3EIJdgm12JdL0WgXfU7nkprDhDVN4AtAAAsd4pU5hnEz+BZtDnofsd7WaoStvaLAwdXTQlIfLYTXbMD/ztoiwHXY9p7loZjctti94+TZpmfghX/teNznCzDKDlv1pi8au/FJ4J/FHpyp/SXkyzNu7aXX+gLfqL5pktnMJ4KKdx3e1DLIoTKWuv0OCqg33bCqe+miZI3h9ER1P2tif4EVFapjLhjSPxEtFeVa4w8qEyMFzYBEruthgpQk9aXP3PI/DPbKQIQp7vAALDlm32wX7yd7ndUROzRVlZb+F/NHlfyeG7qcH3plihA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ExUt2cxLlPCLEctNxusTC4Q2tct3I+w3toDBbh0gaKuUGmiyRs423C7dAeQix3fpZLAIrYXQYjsChG/cpe4+OAC3ybUfDPbCtd8E/UKBXe1nW5Ku1BshX8l6Yc56SyA3Xq2AMMN/UeT1NG+e5rEirFWlwcAIMEQse5/EGwEoSimkvZSg9fclBS7WpIV73hP3Sakoy+VhuQS1UiK8ww0oywk9+bH3X64kjMeM8aLhUysjl2/ynHwrtUJmKyTmQIKH4izZN8eMdQuStQSc4aowjPz/0+s3AwZSRoiZGDI9ZP6wLWyfoz3n68GX5CvUopw8vvnje9kZZLWsPxakybLvdw==
  • Delivered-to: mosquitto-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/mosquitto-dev/>
  • List-help: <mailto:mosquitto-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdqHR66S0gVUSyKzTlOo+ZkiZpn7tAABlzeAAAbAevA=
  • Thread-topic: [mosquitto-dev] Is there a function in the broker to "delete" a topic

Hi Nicholas,

 

Thanks for responding.  In my case I want to specifically avoid transmitting another message to subscribed clients – I just want to silently delete the retained message for those topics.  I don’t want the clients to have to deal with an empty message, which they would presumably see as not well-formed.

 

Regards,

                Andrew

Andrew Thomas

Skkynet Cloud Systems, Inc.

T    1 905 702 7851 ext 104

Skkynet.com      |      LinkedIn   Twitter

 

From: Nicholas Humfrey <njh@xxxxxxxxxx>
Sent: Friday, April 5, 2024 7:40 AM
To: General development discussions for the mosquitto project <mosquitto-dev@xxxxxxxxxxx>
Cc: Andrew Thomas <andrew.thomas@xxxxxxxxxxx>
Subject: Re: [mosquitto-dev] Is there a function in the broker to "delete" a topic

 

Hi Andrew,

 

I don’t know about internal functions.  But to delete a retained message, a client can send an empty message with the retain flag set.

 

nick.

 

 

 



On 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:

  1. Remove the retained message for a topic, and
  2. 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


Back to the top