Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to delete a droplet after runnig my job
Hi, I have to run jobs for several hours, but after finishing them I want to destroy the droplet where they were being run. I have tried to accomplish this using doctl and an access token. The problem is that when I try to authenticate inside the droplet, running: doctl auth init –access-token $DO_TOKEN, I get the following error: Error: mkdir /root/.config: permission denied.
Any idea how to solve that? Or another way to destroy a droplet?
If it helps, I created the droplet using: doctl compute droplet create test –image ubuntu-20-04-x64 –size s-1vcpu-1gb –region nyc1 –ssh-keys $(key_md5)
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.×