private void deleteFilePath(String filePath) {
		if (filePath == null) {
			// Nothing to delete
			return;
		}

		File f = new File(filePath);
		if (f.exists()) {
			logger.info("Deleting file " + filePath);
			f.delete();
		}
		else {
			logger.warn("File '" + filePath + "' does not exist.");
		}

	}
Step listener which can be used to delete files once they have been successfully processed by XD.

Can be used in one of two different ways:

<ol>
    <li>If the 'resources' property is set, it will try to delete each resource as a file.</li>
    <li>Otherwise, it will try to locate the 'absoluteFilePath' parameter in the job parameters
    	   and delete this file if it exists.</li>
</ol>

@author Luke Taylor
@author Michael Minella
@author Gary Russell
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/job/support/listener/FileDeletionStepExecutionListener.java