}
@Override
public void truncate(TemporaryInputDescription description, TestContext context) throws IOException {
LOG.info("Deleting input: {}", description);
VariableTable variables = createVariables(context);
Configuration config = configurations.newInstance();
FileSystem fs = FileSystem.get(config);
for (String path : description.getPaths()) {
String resolved = variables.parse(path, false);
Path target = fs.makeQualified(new Path(resolved));
LOG.debug("Deleting file: {}", target);
boolean succeed = fs.delete(target, true);
LOG.debug("Deleted file (succeed={}): {}", succeed, target);
}