Added missing rev when deleting attachments, apparently untested