In Terraform Cloud and Enterprise, there are logs regarding every run that has happened in each existing workspace. Administrators may want to retain or remove these logs for security or data retention requirements.
Terraform Cloud and Enterprise workspace runs logs will exist for as long as the workspace exists in the Organization.
To retain these logs, simply keep the workspace even if it is no longer actively used workspace.
To remove the logs, the workspace must be deleted. A workspace can be deleted through the Terraform GUI by going to workspace settings -> destruction and deletion. From here a terraform destroy plan can be executed to remove all infrastructure that is in the state file, and the workspace can be deleted through the "Delete from Terraform Cloud/Enterprise" button.
For further information on run logs, please see our documentation.