This command is part of the posix extensions and needs to be imported to be available to the shell.
See Posix Commands
Removes (deletes directory) each argument. If the directory is not empty then this command fails.
See rm to recursively delete directories and files