Linux rm -ir Command: Delete File or Directory Recursively

In this tutorial, we will introduce how to delete file or directory in linux. We can use rm -ir command.

You should notice:

-r means we will delete directory recursively

Linux rm -ir Command - Delete File or Directory Recursively for Beginners

Here is an example:

rm -ir anotherDir

Run this command, you will see in linux:

Linux rm -ir Command: Delete File or Directory Recursively