We have CSV files which list the hostname and filepath.
Our requirement is to delete the file mentioned in the path column from its corresponding host mentioned in the host column. We prefer to have a check before deletion to see if the file exists and log the output to a file whether the delete was successful or not. (If file was already missing, then the output should show file missing)
We prefer to use either a VB script or a powershell script to achieve this.
A sample CSV file is attached.
Please advise the best possible way to go about this as there is a huge number of files which are required to be removed.