# Poco

# class PurgeByCountStrategy

Library: Foundation
Package: Logging
Header: Poco/PurgeStrategy.h

## Description

This purge strategy ensures that a maximum number of archived files is not exceeded. Files are deleted based on their age, with oldest files deleted first.

## Inheritance

Direct Base Classes: PurgeStrategy

All Base Classes: PurgeStrategy

## Member Summary

Member Functions: purge

Inherited Functions: list, purge

## Constructors

### PurgeByCountStrategy

PurgeByCountStrategy(
std::size_t count
);

## Destructor

### ~PurgeByCountStrategy

~PurgeByCountStrategy() override;

## Member Functions

### purge

void purge(
const std::string & path
) override;

See also: Poco::PurgeStrategy::purge()