code: public static boolean deleteAttachment(Attachment attachment) {
          File attachmentFile = new File(getResultsDirectory(), attachment.getSource());
          return attachmentFile.exists() && attachmentFile.canWrite() && attachmentFile.delete();
      }
docs: Remove attachment form {@link #resultsDirectory}
  
  @param attachment to remove
  @return true, if attachment removed successfully, false otherwise