Remove composite pkey from attachments