(created/git2cpp/rm.md)=
# git2cpp rm

```{parsed-literal}
Remove files from the working tree and from the index


git2cpp rm [OPTIONS] [&lt;pathspec&gt;...]


POSITIONALS:
&nbsp; &lt;pathspec&gt; TEXT ...         Files to remove

OPTIONS:
&nbsp; -h,     --help              Print this help message and exit
&nbsp; -r                          Allow recursive removal when a leading directory name is given
```
