# Manage a project

Change a [project](/docs/concepts/project-lifecycle.md#projects)'s name, slug and labels, or delete it, on its Settings page. Deleting a project moves it to Trash for 30 days.

## Before you start

You need a project. See [Create a project](/docs/projects/create-project.md).

## Rename a project

**Studio**

1. In the project's sidebar, open **Settings** > **Project information**.
2. Change the **Name** to "Help desk".
3. Enter "support" in **Labels**.
4. Press Enter.
5. Click **Update project**. You should now see "Project updated" and Help desk in the breadcrumb.

**API**

1. Set `PROJECT` to your project's ID ([Find your IDs](/docs/authentication/api-keys.md#find-your-ids)): `export PROJECT=<id>`.
2. Rename it with an [API key](/docs/authentication/api-keys.md) for all projects. A project key is refused:

```bash
curl -X PATCH https://api.veryfront.com/projects/$PROJECT \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "Help desk"}'
```

3. Add the label:

```bash
curl -X POST https://api.veryfront.com/projects/$PROJECT/labels \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key": "support"}'
```

4. Get the project. You should now see `"name": "Help desk"`:

```bash
curl https://api.veryfront.com/projects/$PROJECT \
  -H "Authorization: Bearer $VERYFRONT_API_KEY"
```

## Delete a project

**Studio**

1. Open **More actions**.
2. Click **Delete project**.
3. Enter the project's slug in **Slug**.
4. Click **Delete project**. You should now see "Project moved to Trash", and Help desk is no longer in the **Projects** list. You can restore it from Trash within 30 days.

**API**

1. Delete the project. Your API key needs the **Delete** permission:

```bash
curl -X DELETE https://api.veryfront.com/projects/$PROJECT \
  -H "Authorization: Bearer $VERYFRONT_API_KEY"
```

2. Get the project again. You should now see the answer `404`:

```bash
curl -o /dev/null -w "%{http_code}\n" https://api.veryfront.com/projects/$PROJECT \
  -H "Authorization: Bearer $VERYFRONT_API_KEY"
```

## With MCP

1. Call `veryfront__update_project` with `project_reference` (the project's slug or ID) and `"name": "Help desk"`.
2. Call `veryfront__create_project_label` with `project_reference` and `"key": "support"`.
3. Call `veryfront__list_projects` with `"search"` set to the project's slug. It worked when the project comes back with `"name": "Help desk"`. `veryfront__get_project` answers an empty `name` for now, so don't check with it.
4. Call `veryfront__list_project_labels` with `project_reference`. It worked when `support` is listed.
5. To delete the project, call `veryfront__delete_project` with `project_reference` and `"confirm": true`. It worked when `veryfront__get_project` then answers "Project not found".

## Next steps

* [Invite people](/docs/account/team.md)
* [Set variables](/docs/runtime/environments.md)
