Learn how to delete a Terra Billing project using Swagger.
Note: Before deleting a Terra Billing project, be aware this action cannot be undone!Best practice is to make sure all team members who used this Billing project know that any workspaces created under this project umbrella will be inaccessible. Any links to data in these workspace buckets will break.
Any data in workspace buckets that you want to keep must be moved to another external or Terra workspace bucket, or local storage, before deleting the Terra Billing project.
Note: 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.
Step 1. Delete all associated workspaces
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 the three vertical dots icon at the right of each workspace name and select Delete from the popup menu. Repeat until no workspaces remain.
Step 2. Remove users from the Billing project
The next step is to remove everyone but the primary Billing project owner.
2.1. Go to your Billing page (Main Menu > Your name > Billing).
2.2. On the left side, click on the link for the Billing project you want to delete. Note: If the Billing project is not clickable, you don't have owner permission and cannot delete the project. This will take you to the summary page.
2.3. On the Terra Billing project summary page, select the "User" tab.
2.4. Click the three vertical dot icon to the right of each user (beside you - the primary owner) and then the trash icon (Remove User).
Step 3. Use Swagger to delete the Terra Billing project
3.1. Navigate to Swagger.
3.2. Click the lock icon at the top-right of the module to authenticate.
3.3. In the popup form, check all four boxes and click the Authorize button at the bottom.
3.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.
3.5. Click Try it out on the right hand side of the Swagger page.
3.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.
3.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, most likely, you are not authenticated. E.g., this can happen if you leave your browser inactive. Try going back and authenticating (step 2.2-2.4). Make sure to do all the steps in one browser session.