Either way of cleaning is supported:
Use the command cloud-init clean --logs --seed --disabled to clean the cloud-init instance directly.
Refer to the Installing the VM Initialization Tool in the operating system chapter, and execute the command bash /mnt/<dir_to_mount_iso>/cloud-init/tools/clean_cloud_init.sh to clean the instance. If the cleaning is successful, you will see the message cloud-init configuration cleanup completed.
Note:
If a NIC static IP configuration file generated by initialization exists in the virtual machine, delete it manually.