in terranova/commands/binds.py [0:0]
def destroy(path: str | None) -> None:
"""Destroy previously-created resources."""
# Find all resources manifests
paths = resource_dirs(path)
# Format all paths
for full_path, rel_path in paths:
Log.action(f"Destroying resources: {rel_path}")
# Mount terraform context
terraform = mount_context(full_path, import_vars=True)
# Execute destroy command
try:
terraform.destroy()
except ErrorReturnCode as err:
raise Exit(code=err.exit_code) from err