How can we delete single resource type entry

i would like to destroy single resource from my openstack cloud.

i want to destroy the image created in the openstack using the command:

terraform destroy -target=resourcetype.resourcename

how can i get the above info without declaring the resources in my root module