How to delete the images created by packer

hi team,

I have created and customised the image using packer and then deployed instances using the same image in openstack. my question is how can i remove/delete the image from the infrastructure after instances are being deployed.

Packer is for creating images, not destroying after a deployment. Packer doesn’t even know of you deployment, I guess. You’ll have to use the tools of your cloud provider to delete the images.

got you so even terraform cannot do that for me in this case.
or should i have to ask openstack for the api to delete that

In case of Terraform I am not sure. You’ll have to import the image to your Terraform configuration/ state file so it knows about it. I think the openstack api would be the easiest way.

thanks a lot buddy
it helped a lot.