Depending on the criteria, solutions might change.
To terminate handling the resources, remove them from the Terraform code.
By using terraform, you may destroy and regenerate resources through the API.
Execute an importing action to delete the resources and the code that is attempting to rebuild them.