Not able to run "rm" to delete files with "dirscan" probe

Document ID : KB000015363
Last Modified Date : 14/02/2018
Show Technical Document Details

Using the "dirscan" probe on a Linux robot, we have a profile that looks for a certain file extension and file size.

It manages to find the file of with the size and extension (even generates an alarm), but it is not deleting the file.  

Under the "Size" tab in the command line, we are using: rm *.hprof



What is the correct syntax to delete files using the "dirscan" probe on a Linux robot?

- RHEL 7- UIM 8.5.1

Use the "-f" parameter for the "rm" command and also put the full path of the directory.

For example:  rm -f /path/to/directory/*.hprof