code: private static void clean(Config config, Attachment[] attachmentz) {
  	if (attachmentz != null) for (int i = 0; i < attachmentz.length; i++) {
  	    if (attachmentz[i].isRemoveAfterSend()) {
  		Resource res = config.getResource(attachmentz[i].getAbsolutePath());
  		ResourceUtil.removeEL(res, true);
  	    }
  	}
      }
docs: remove all atttachements that are marked to remove