hg remove

Remove specified files from the staging area. More information: https://www.mercurial-scm.org/doc/hg.1.html#remove.

hg remove path/to/file

hg remove --include pattern

hg remove --exclude pattern

hg remove --subrepos

hg remove --after