---
title: REPOSITORY UNDELETE
product: Unity Version Control
canonical: https://docs.unity.com/en-us/unity-version-control/uvcs-cli/repository-undelete
last_updated: 2026-11-19
generated_at: 2026-11-22T22:11:06.756Z
locale: en-us
---

# REPOSITORY UNDELETE

> Restore deleted repositories with the Unity Version Control CLI.

## Description

Restores a deleted repository.

### Usage

```bash
cm repository | repo undelete <repspec> [<new_name>]
```

### Options

| Option / Argument | Description                                                                                                                              |
| :---------------- | :--------------------------------------------------------------------------------------------------------------------------------------- |
| repspec           | Deleted repository to restore, by name or by GUID. (Use '**cm** **help** **objectspec**' to learn more about repository specifications.) |
| new\_name         | New name for the restored repository. If you don't set it, the repository keeps its name.                                                |

## Help

### Remarks

Only server administrators can restore repositories, because only they can see deleted repositories. Restoring a repository also requires permission to create repositories on the server.

When a server administrator lists the repositories with `cm repository list`, deleted repositories appear as `__DELETED__<name>`.

If several deleted repositories have the same name, specify the repository by its GUID. To list the names and GUIDs of the repositories, run:

```bash
cm repository list myserver:8084 --format="{repname} {repguid}"
```

### Examples

```bash
cm repository undelete oldrepo@myserver:8084
```

(Restores the deleted repository `oldrepo` on `myserver`.)

```bash
cm repository undelete oldrepo@myorg@cloud newrepo
```

(Restores the deleted repository `oldrepo` in the cloud organization `myorg`, and names it `newrepo`.)

```bash
cm repository undelete 9b2f6c1e-6d3a-4e8b-9a4f-0c5d7e1a2b3c@myserver:8084
```

(Restores the deleted repository with the GUID `9b2f6c1e-6d3a-4e8b-9a4f-0c5d7e1a2b3c` on `myserver`.)
