# Spaces

A Space is where a folder's notes meet the people you work with. Connect a folder to a Space and its notes sync across your devices, and with everyone in the Space, in real time.

Your folder is still a folder of Markdown files on your device. The Space keeps the shared copy. Every new Space is end-to-end encrypted; a Space made before encryption is encrypted once its owner turns it on. See [Encryption](/p/docs/encryption).

## Create a Space

You need to be signed in. See [Signing in](/p/docs/signing-in).

- **On the first open**, at **Choose a Space**: choose **New Space**, give it a name and an emoji, and choose **Create & sync**.
- **Later**, in **Settings › Space**: under **Space binding**, choose **New**, name it and choose **Create Space**.

Every new Space is encrypted from the start, so Niv needs to reach its server to create one. The person who creates a Space is its owner.

![Settings › Space: the Space this folder syncs with, People and Space sync](https://niv.md/docs-media/settings-space.dark.png)

## Connect a folder to a Space you're in

Go to **Settings › Space** and pick the Space from the list. On the first open, pick it and choose **Sync here**.

One folder syncs with one Space. If a folder already holds notes from another Space, that Space shows "not for this folder". To work in another Space, use a new folder.

## The first sync

When you connect a folder that already has notes, Niv matches its files with the Space by title before creating anything. Home says how many files are waiting: how many link to notes already in the Space, how many become new notes, and how many come down from the Space. Choose **Review** to see them, then **Sync now**, or **Not now**. Everything already linked keeps syncing meanwhile.

A file that can't be matched stays here, and Niv says so. Nothing is thrown away.

## Your Space on another device

Install Niv on the other device, sign in with the same account, and unlock your notes with your passphrase. Then pick a new empty folder and choose the Space. Its notes come down into that folder.

## Stop syncing

In **Settings › Space**, choose **Unbind**. The folder stops syncing with the Space. Your files stay in the folder.

## Who's in a Space

**Settings › Space** lists the people in the Space, their roles, and which note each one is in right now. On the Free plan, a Space holds 3 people, invitations included; with Niv Pro, the Spaces you own have no limit. See [Members and roles](/p/docs/members-and-roles) and [Niv Pro](/p/docs/niv-pro).

## Leave or delete a Space

Both are in **Settings › Space**, under **Danger zone**.

- **Leave this Space**: you stop seeing it on every device. The files in this folder stay, and what you wrote stays in the Space. To come back, someone has to invite you again. If you're its only owner, make someone else an owner first, or delete the Space.
- **Delete this Space**, for owners: it's erased from Niv for everyone in it, with every note, its history and versions, images, comments, members, invitations and its published site. The Markdown files in this folder, and in each member's own folder, stay; Niv stops syncing them. Type the Space's name, then choose **Delete Space**.

## Learn more

- [Sync status](/p/docs/sync-status): what the line at the bottom of the sidebar means.
- [Writing together](/p/docs/writing-together): real-time editing and presence.
- [Local-only files](/p/docs/local-only-files): notes that stay on your device.

---

Published with [Niv](https://niv.md/) in the Space Docs.
