cloud-init clean

Category: IaC & Automation

cloud-init clean

Reset cloud-init state for a fresh first boot

Removes cloud-init's saved instance state so the next boot re-runs initialization as if the machine were new. It does not remove user-data or packages, but it can reset values like machine-id, so use it only when preparing golden images or clones. Related: cloud-init clean -r.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.