remove old versions based on a keep_version_count attribute