Fixup javadoc
Fix logic on purgeAttachments()