hg-remove
Remove specified files from the staging area. tldr-pages
On several platforms
Several platforms
Remove files or directories from the staging area
hg remove path/to/fileIdentifyRemove all staged files matching a specified pattern
hg remove --include patternIdentifyRemove all staged files, excluding those that match a specified pattern
hg remove --exclude patternIdentifyRecursively remove sub-repositories
hg remove --subreposIdentifyRemove files from the repository that have been physically removed
hg remove --afterIdentify