How to fix the 'rm' is not recognized as an internal or external command

windows, command, rm, rf, del

In this tutorial, we will learn how to fix the rm is not recognized as an internal or external command issue.

When we try to remove a folder or file using the rm command in windows os, we will see this type of error displayed in our command line.

rm directory\filename.js

Output:

'rm' is not recognized as an internal or external command,
operable program or batch file.

This error has occurred because the rm command is not available in windows os. It is only available in Linux-based operating systems.

To fix the error, replace the rm with windows del command and run it:

del directory\filename.js

Click "Y" for 'yes' or "N" for 'No' when prompted and click Enter.

That's it. you are all done.

 

 

Interested in hiring us for your project?

To start an initial chat, just drop an email at mail@foozawebtech.com or use the form on the contact page.