# rm - [Command Function](#section181141523142613) - [Syntax](#section8800926132619) - [Parameter Description](#section15476229152617) - [Usage](#section10578163215262) - [Example](#section18548133511263) - [Output](#section1565323814265) ## Command Function This command is used to delete a file or folder. ## Syntax rm \[_-r_\] \[_dirname / filename_\] ## Parameter Description **Table 1** Parameters
Deletes a directory. This parameter is optional. It is required if a directory is to be deleted. |
||
Indicates the name of the file or directory to be deleted. The value can be a path. |