---
title: "Close a workspace"
description: "Learn how to download every invoice of a workspace, close the workspace, and reopen it."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Close a workspace

Your invoices are yours. You can download all of them at any time, as one ZIP file. When you no longer need
Certinvo, an owner closes the workspace, and 30 days later its data is deleted, unless the law still keeps an
invoice in it. This guide shows both steps, and how to undo a closing.

## Before you begin

- Sign in to the console. Neither step works with an API key.
- To download everything, you must be an owner or an admin of the workspace.
- To close or reopen the workspace, you must be an owner.

## Download every invoice

1. Open **Settings**, then **Workspace**, then **Data & workspace** (`/settings?tab=data`). It is the second page of Workspace.
2. Click **Download everything**.

The browser saves one ZIP file named `certinvo-<date>.zip`. It holds every invoice of the workspace, from the live
company and the sandbox company, received and issued. Each invoice has its own folder:

```text
<live|sandbox>/<received|issued>/<issue date>_<invoice number>_<id>/
```

Each folder holds what the evidence download holds for one invoice:

- `files/`: the invoice's stored files, and the customer's file it was made from.
- `manifest.json`: each file with its sha256, and under `withheld` each file a download would refuse, with the
  reason.
- `history.json`: the invoice's history.

`index.csv` at the top lists every invoice: its environment, direction, number, issue date, verdict and folder. It
starts with a byte-order mark, so a spreadsheet reads a letter such as `ü` as written. A cell that a spreadsheet would run as a
formula, such as an invoice number that starts with `=`, is written with a leading `'`.

Each invoice that gave a file to the ZIP gets a download line in its history. The ZIP is written while it
downloads, so a large workspace takes a while. If the download breaks off, the file does not open. Start it again.

You can download everything while the workspace is closed, up to the day it is deleted.

## Close the workspace

1. Download everything first. After the 30 days nothing that was downloaded can be restored.
2. On **Data & workspace**, click **Close workspace**.
3. Read the warning, then click **Yes, close workspace**.

The page now shows **Workspace closed** and the first day its data may be deleted, 30 days from now. From then on:

- The workspace starts no new work. Checks, conversions, previews and replacements are refused with 403
  `workspace_closed`, and so is `GET /v1/plan`.
- You can still sign in, see your invoices and download everything.

A workspace that has other workspaces under it cannot be closed here. The page says so; contact us to close it.

## Reopen the workspace

On **Data & workspace**, click **Reopen workspace** before the day shown. The workspace works again at once, and nothing
is deleted. If you close it again later, a new 30 days start.

## What happens on the day

On the day shown, all of the workspace's data is deleted: its companies, invoices and their files, settings, API keys, and the list of who belongs to it.
A person who belongs to no other workspace loses their login. A person who belongs to another workspace keeps it.

An invoice is kept for eight years from the end of the year it was issued (UStG § 14b(1), AO § 147(3), (4)). So a
closed workspace is not deleted while an invoice of its live company is inside those eight years, unless that invoice
was downloaded in **Download everything** or in its evidence download. The workspace then stays closed until the
last of those years ends. A sandbox invoice is a test, so it keeps nothing. A tax assessment that is still open can
run the period on; Certinvo cannot see that, so the day it names is the end of the eight years, not a promise.

A workspace with invoices in the GoBD archive is not deleted. Those files are locked until their keep-until date,
so the workspace stays closed instead.

## See also

- [Download an invoice in another format](/how-to/invoices/download-an-invoice-in-another-format): the evidence
  download for one invoice.
- [API error codes](/reference/api-error-codes#closing-the-workspace-and-downloading-everything): every refusal of these
  routes.
- [Work in the sandbox](/how-to/workspaces/work-in-sandbox)

Source: https://docs.certinvo.com/how-to/workspaces/close-a-workspace/index.mdx
