delete¶
vb rm|delete|forget FILE1 [FILE2 ...]
Description¶
Remove one or more files or directories from the repository.
The rm and delete commands do NOT normally remove the files from disk. They just mark the files as no longer being part of the project. In other words, future changes to the named files will not be versioned. However, the default behavior of this command may be overridden via the command line options listed below and/or the mv-rm-files setting.
The forget command never removes files from disk, even when the command line options and/or the mv-rm-files setting would otherwise require it to do so.
WARNING: If the --hard option is specified -OR- the mv-rm-files
setting is non-zero, files WILL BE removed from disk as well.
This does NOT apply to the forget command.
Options¶
- --hard¶
Remove files from the check-out
- --case-sensitive BOOL¶
Override the case-sensitive setting
- -n, --dry-run¶
If given, display instead of run actions.
Examples¶
Init and open a repository
$ vb init rm_repo.vbyte
project-id: 4dc0e1c031e893ff5c7f29c0c641bbcceee12180
server-id: 5c14a9aa49ec065108a511a1a0f49291e4120770
admin-user: ubuntu (initial remote-access password is "aPCQkm7qTi")
$ vb open -f rm_repo.vbyte
project-name: <unnamed>
repository: /tmp/sphinx_tests/15249d67/rm_repo/rm_repo.vbyte
local-root: /tmp/sphinx_tests/15249d67/rm_repo/
config-db: /tmp/sphinx_tests/15249d67/.visionbyte
project-code: 4dc0e1c031e893ff5c7f29c0c641bbcceee12180
checkout: e50937e2ce1b0f1aa7795eb6dcdf111701d916a3 2026-03-31 13:00:13 UTC
tags: trunk
comment: initial empty check-in (user: ubuntu)
check-ins: 1
Add and commit a file
$ vb system echo "config" > config.tmp
$ vb add config.tmp
ADDED config.tmp
$ vb ci -m "Add config"
Committed version: e8603ff9be0f6be2b8ab87f43ea526d124c4564c53e0e40ee0dd6bc0d4708c3f
Remove the file from version control
$ vb rm config.tmp
DELETED config.tmp
Show changes (DELETED) and commit
$ vb changes
DELETED config.tmp
$ vb ci -m "Remove config"
Committed version: e3a013b4a5fdcbd079270fc73fea00c00fce863bc20d0e3d029173094b1d4046