mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 08:10:40 +08:00
If the 'rad' remote is still in the git config, then some of the CLI tooling will think the project exists -- even after running `rad rm`. For example, in the current state, if `rad rm` is followed by `rad init` then the operation will fail. During `rad rm`, attempt to delete the 'rad' remote. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
777 B
777 B
To delete a repository from local storage, we use the rad rm command.
First let's look at what we have locally:
$ rad ls
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
✗ Remove failed: repository rad:z2Jk1mNqyX7AjT4K83jJW9vQoHn4f was not found