CGIV-4304: Switch to ruby block to delete files as file resource doesn't seem to do anything