OA Spinach Platform Build commands you can delete one or more files or directories in a directory, or you can delete a directory and all of its subordinate files and subdirectories. For linked files, only the entire linked file is deleted, and the original file remains unchanged. Enterprise: 217 1793 408
Note: Use the RM command with extreme caution. Because once a file is deleted, it can no longer be recovered. So, before deleting a file, it's a good idea to look at the contents of the file and determine if you really want to delete it. The RM command can be used with the-I option, which is particularly useful when deleting multiple files using the file extension name character. With this option, you will be asked to determine whether you want to delete it. In this case, you must enter Y and press ENTER to delete the file. If you press the ENTER key or other characters only, the file is not deleted.
Grammar
RM (option) (parameter)
Options
-D: Delete the hard connection data of the directory you want to delete to 0, delete the directory;
-F: Forcibly deleting files or directories;
-I: Ask the user before deleting an existing file or directory;
-R or-R: Recursive processing, all files under the specified directory are processed in conjunction with subdirectories;
--preserve-root: Do not recursively operate the root directory;
-V: Displays the detailed execution of the instruction.
Linux file management: OA Spinach Platform Build command detailed