rm

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

--soft

Skip removing files from the check-out. This supersedes the --hard option.

--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.

--reset

Reset the DELETED state of a check-out, such that all newly-rm’d (but not yet committed) files are no longer removed. No flags other than --verbose or --dry-run may be used with --reset.

-v, --verbose

Outputs information about each --reset file. Only usable with --reset.

Examples

  • Init and open a repository

$ vb init rm_repo.vbyte
project-id: b238886f4afc11e97ee4f080d6ee7dd9e785712f
server-id:  9e85520f0406e18fb99c097d1d4887b91c91a9bb
admin-user: ubuntu (initial remote-access password is "7aUCKjMvoQ")
$ vb open -f rm_repo.vbyte
project-name: <unnamed>
repository:   /tmp/sphinx_tests/89083c99/rm_repo/rm_repo.vbyte
local-root:   /tmp/sphinx_tests/89083c99/rm_repo/
config-db:    /tmp/sphinx_tests/89083c99/.visionbyte
project-code: b238886f4afc11e97ee4f080d6ee7dd9e785712f
checkout:     d497cad1ceaebfb7e35322a633d698ada794f20c 2026-03-31 13:00:36 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: a9ef97185b9e6843487bc315c2686b87b1e4a4dc1df8dfcce9b3aa62d21a1e73
  • 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: 45f63c0ea1839b04fed6112ddbd555bc41fb537473b940896b9a33ca26d9bc1b

See Also

See also

addremove, add