How to suppress plan error in data block

Hi All,

I have a terraform code which fetch image information with data block (“google_compute_image”) and then I am referencing that data block inside my instance code to pass boot disk information.
lately i have observed when my images are deleted at backend project, my TF is gives me plan error on next run stating resource not found (which is logical)…

is there is any way we can suppress this plan error.
As we have image deletion process which removes images from backend project after every 1 year, however I want these instance more than 1 year ?

The only way I can think of to make this work in Terraform would be to retrieve the image ID outside of Terraform, and configure it in Terraform as a simple string, not via a data block.