Add purgeAttachments