If you want to log which records are deleted, then add something like:

gs.info('cleanUpContingentHRProfiles script: deleting profile for user: ' + hrObj.user);

In the 'While()' loop before the delete() in Brad's script.  the you can use the Script Log Statements module and add a filter condition: "Message", "start withs", "cleanUpContigentHRProfiles: ".