You can remove resources from the state with the terraform state rm command.
You should advise that, as of terraform 1.7, terraform supports removed blocks which enable one to remove resources without having to write terraform state rm commands. Using removed blocks is a much much easier way of achieving this.
Documentation Link
https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/docs/technical-documentation/resource_migration.md
Description
The article states
You should advise that, as of terraform 1.7, terraform supports
removed
blocks which enable one to remove resources without having to writeterraform state rm
commands. Usingremoved
blocks is a much much easier way of achieving this.References
No response
Would you like to implement a fix?
None