Files
heartwood/radicle-cli/examples/rad-rm.md
T
cloudhead 4fb5f6c172 cli: Simplify fatal error output
It didn't make sense to get eg. `Patch failed` when listing patches
failed. We change all fatal errors to simply "Error:", giving more
control over the individual commands.
2023-09-01 15:17:41 +02:00

1.7 KiB

To delete a repository from local storage, we use the rad rm command. First let's look at what we have locally:

$ rad ls
╭──────────────────────────────────────────────────────────────────────────────────────────────╮
│ Name        RID                                 Head      Description                        │
├──────────────────────────────────────────────────────────────────────────────────────────────┤
│ heartwood   rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji   f2de534   Radicle Heartwood Protocol & Stack │
╰──────────────────────────────────────────────────────────────────────────────────────────────╯

Now let's delete the heartwood project:

$ rad rm rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --no-confirm
✓ Untracked rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji
✓ Successfully removed 'rad' remote
✓ Successfully removed rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from storage

We can check our repositories again to see if it was deleted:

$ rad ls

Attempting to remove a repository that doesn't exist gives us an error message:

$ rad rm rad:z2Jk1mNqyX7AjT4K83jJW9vQoHn4f
✗ Error: repository rad:z2Jk1mNqyX7AjT4K83jJW9vQoHn4f was not found