# 2. Creating Snapshots - 8. Removing Files -rm

**URL:** <https://forum.codewithmosh.com/t/2-creating-snapshots-8-removing-files-rm/7151>\
**Category:** Git\
**Created:** [September 5, 2021, 12:13am UTC](https://forum.codewithmosh.com/t/2-creating-snapshots-8-removing-files-rm/7151 "2021-09-05T00:13:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjenne](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@Sjenne](https://forum.codewithmosh.com/u/Sjenne)\
**Post date:** [September 5, 2021, 12:13am UTC](https://forum.codewithmosh.com/t/2-creating-snapshots-8-removing-files-rm/7151/1 "2021-09-05T00:13:19Z")

</div>

I am using Windows 10 for this course. Whenever I enter ‘rm’ into the command prompt it pops up:

_‘rm’ is not recognized as an internal or external command,_  
_operable program or batch file._

What is the correct command?

---

<div class="post-metadata">

**Author:** ![Sjenne](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@Sjenne](https://forum.codewithmosh.com/u/Sjenne)\
**Post date:** [September 5, 2021, 12:59am UTC](https://forum.codewithmosh.com/t/2-creating-snapshots-8-removing-files-rm/7151/2 "2021-09-05T00:59:49Z")

</div>

I figured it out. The command should be _git rm file2.txt_

In the video it is just rm but Windows requires you to say _git_ before the rm.

---

<div class="post-metadata">

**Author:** ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)\
**Post date:** [August 7, 2022, 3:58am UTC](https://forum.codewithmosh.com/t/2-creating-snapshots-8-removing-files-rm/7151/3 "2022-08-07T03:58:59Z")

</div>

> [@Sjenne](#):
>
> In the video it is just rm but Windows requires you to say _git_ before the rm.

That’s probably for git bash. On MacOS and Linux/Unix OS you can just use `rm`.
