By Wassim
if you added a script in the user-data, every time you rebuild the droplet even from a new image, it will run. how to remove that script and rebuild the droplet with a clean image only without any scripts?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi!
Unfortunately it is not possible to remove the user-data script of an existing droplet. If you do not have any important data on your droplet, you can just destroy it and create a new droplet.
There should be a way to edit the user data after a droplet has been created. For example when a rebuild is started, this could be very useful. That way at least we know the ip address and don’t have to edit any DNS stuff.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.