The following examples demonstrate how to delete all files, individual files, or entire folders from an NI Linux Real-Time target using the rm command:
- Delete all files in a folder: rm /c/logfiles/*
- Delete a specific file: rm /c/logfiles/test.tdms
- Delete a folder and all files: rm -r /c/logfiles
Use a space between rm, -r, and the target path.