pry0cc / axiom

The dynamic infrastructure framework for everybody! Distribute the workload of many different scanning tools with ease, including nmap, ffuf, masscan, nuclei, meg and many more!
MIT License
4k stars 622 forks source link

Unable to delete instance #547

Closed ghost closed 2 years ago

ghost commented 2 years ago

@pry0cc @0xtavian Can you Please Check this issue?

Also i don't know why it's creating droplets with the same name.

Deleting 'bounty01'... Error: There are 2 Droplets with the name "bounty01"; please provide a specific Droplet ID. [297276468, 297343033] Deleting 'bounty02'... Error: There are 2 Droplets with the name "bounty02"; please provide a specific Droplet ID. [297276471, 297343048] Deleting 'bounty03'... Error: There are 2 Droplets with the name "bounty03"; please provide a specific Droplet ID. [297276472, 297343061] Deleting 'bounty04'... Error: There are 2 Droplets with the name "bounty04"; please provide a specific Droplet ID. [297276474, 297343046] Deleting 'bounty05'... Error: There are 2 Droplets with the name "bounty05"; please provide a specific Droplet ID. [297276476, 297343050] Deleting 'bounty06'... Error: There are 2 Droplets with the name "bounty06"; please provide a specific Droplet ID. [297276480, 297343051] Deleting 'bounty07'... Error: There are 2 Droplets with the name "bounty07"; please provide a specific Droplet ID. [297276477, 297343060] Deleting 'bounty08'...

ghost commented 2 years ago

doctl compute droplet list --format "ID" >> id
doctl compute droplet delete -f 297343158
cat id | while read -r line;do doctl compute droplet delete -f $line;done

I used the above command to delete the droplet but unfortunately i forgot to remove the base machine ID and it's deleted before deleting the other droplets. Is there any ways to recover the deleted machine.

@pry0cc @0xtavian Please help.

0xtavian commented 2 years ago

@daai1 unlikely you can recover the deleted machine. I would ask support to be sure.

there is a bug when more than one instance shares the same $gen_name. It’s mentioned here with a workaround. https://github.com/pry0cc/axiom/issues/487