Home Explore Blog CI



ragit

docs/commands/remove.txt
4206998ee0c80284d99ca1808fb644107781386a7e4eea030000000300000465
rag-remove(1)
==========

NAME
----
rag-remove - Remove staged or processed files
rag-rm - Alias

SYNOPSIS
--------
[verse]
'rag remove' [--dry-run] [--recursive | -r] [--auto]
            [--staged | --processed] [--all] <files>...

DESCRIPTION
-----------
Run `rag help chunks` to read documents on chunks and files.

It remove files in a knowledge-base. You can list the names of the files, or
use `--all` flag. `rag rm --all` is like running `rag rm -r .` in the root
directory. The only difference is that `rag rm --all` does nothing when the
knowledge-base is empty while `rag rm -r .` complains that "there's no such file".

Unlike git, it never removes file in the file system. It only modifies
ragit's index.

If a directory name is given, it removes all the files in the directory
recursively. This requires `--recursive` flag.

By default, it removes all the files that are known to ragit. With `--staged`
flag, it only removes staged files and with `--processed` flag, it only removes
processed files. `--auto` is another filter. It removes a file in
knowledge-base if the file does not exist in the file system.

Chunks
5f8eae08 (1st chunk of `docs/commands/remove.txt`)
Title: rag-remove Command
Summary
The rag-remove command is used to remove staged or processed files from a knowledge-base, without affecting the file system, and can be customized with various flags to specify the type of files to remove.