Although there is currently no way to delete Terra billing projects in the UI, you can do this using Swagger following the steps below. This is also useful for deleting Terra Billing projects that failed to create (noted with a red '!' in the Billing page).
Note that you can delete the Google project associated with a workspace by deleting the workspace. This will not delete the Terra Billing project used to create the workspace.
Before deleting a Terra Billing project - this action cannot be undone It is a best practice to make sure all team members who have used this Billing project know that any workspaces created under this project umbrella will be inaccessible, and any links to data in these workspace buckets will break.
Any data in the workspace buckets that you want to keep needs to be moved to another external or Terra workspace bucket, or local storage before deleting the Terra Billing project.
Step 1. Delete all associated workspaces
You will first need to delete all workspaces created under the Terra billing project. Start in your Workspaces page (from the main navigation at the top left).
1.1. Filter by the billing project you want to delete.
1.2. Click on the three vertical dots at the right of each workspace name and select "Delete" from the popup menu. Repeat until no workspaces remain.
Step 2. Use Swagger to disable the Terra Billing project
2.1. Navigate to Swagger.
2.2. Click the lock icon at the top-right of the module to authenticate.
2.3. In the popup form, check all four boxes and click the Authorize button at the bottom.
2.4. In the next screen, click the Close button.
This step tells Swagger you have permission to delete the Billing project.
If you are asked to sign into Google and allow the Terra Production API permission to access your Google account, sign in and then click Allow.
2.5. Click Try it out on the right hand side of the Swagger page.
2.6. In the "Name of the billing project" field, type in or paste the complete name of the Terra billing project you want to delete.
2.7. In the horizontal blue bar that appears, press Execute.
What to expect
When the Billing project has been successfully deleted, you will receive a 204 response code.
If you get a 400 code and an error message that there are workspaces under this Billing project, go back to Step 1 and delete any remaining workspaces.
If you get a 400 code and a different error message, you are most likely not authenticated. This can happen if you leave your browser inactive, for example. Try going back and authenticating (step 2.2-2.4). Make sure to do all the steps in one browser session.