Report this

What is the reason for this report?

Can I set a timer for droplets to auto destroy?

Posted on January 27, 2017

hello guys,

someone told me that you can set a timer on the droplets for it to automatically destroy itself? Is this possible? if so, how?

many thanks!



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@AidanNewin

From the DigitalOcean Control Panel, no, however, you can use the API to help you automate certain tasks.

What you’d do is create a script that connects to the API and sends a request to destroy the Droplet. How you’d go about it depends on your preferred programming language.

API Documentation: https://developers.digitalocean.com/documentation/v2/

To be more specific, this is the section you’d want to check out:

https://developers.digitalocean.com/documentation/v2/#delete-a-droplet

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.