There isn't a single Terraform command specifically named terraform reset-state that universally clears or deletes your state file.
The concept of "resetting" Terraform state usually means one of a few things, and the command or action depends on what you're trying to achieve:
You want to destroy all the infrastructure managed by this state file and then start over.
Command:terraform destroy
Explanation: This is the most common way to effectively "reset" everything managed by your configuration. It plans and executes the destruction of all resources defined in your Terraform code that are tracked in the current state file. Once the resources are destroyed, Terraform updates the state file to be empty (or remove the destroyed resources).
Caution: This will delete your cloud resources (VMs, databases, networks, etc.)!
You want to delete the state file itself, without destroying the infrastructure.
Action: This is usually a manual operation or specific to your backend.
For local state (the default): Delete the terraform.tfstate file in your root module directory.
For remote state (e.g., S3, Azure Blob Storage, GCS): You need to delete the state object or blob directly in the remote backend storage location using that service's tools (CLI, console, API). There is no generic terraform delete-remote-state command.
Caution: This is highly dangerous and generally not recommended unless you know exactly what you are doing. If you delete the state file without destroying the resources, Terraform loses all knowledge of the infrastructure it created. The next time you run terraform apply, it will think these resources don't exist and try to create them again, likely causing errors or duplicate resources. Use this only if you intend to completely abandon management of the existing resources via Terraform and start fresh with a new set of resources.
You want to remove all resources from the state file without destroying them (very advanced/risky).
Action: There is no built-in command to remove everything from the state file at once without destroying resources. You would theoretically have to use terraform state rm <resource_address> for every single resource in your state, which is tedious and error-prone.
Alternative: Deleting the state file itself (as in point 2) achieves this outcome, but with the significant risks mentioned.
Caution: Similar to deleting the file, this means Terraform loses track of your infrastructure.
In Summary:
If you want to tear down your infrastructure and start fresh, use terraform destroy.
If you want to manually erase Terraform's knowledge of the infrastructure (use extreme caution!), you need to manually delete the terraform.tfstate file (for local state) or delete the state object in your remote backend.
Always back up your state file before performing any operation that modifies or deletes it.