By default, every MQTT topic can have a retained message. The standard MQTT mechanism to clean up retained messages is sending a retained message with an empty payload to a topic. This will remove the retained message.
MQTT.Publish('topic1', '', mtqsAtMostOnce, true);