postgresql_16:7.3.2.2 Options
PostgreSQL 16 > Reference > PostgreSQL Server Applications > pg_archivecleanup > Options
pg_archivecleanup accepts the following command-line arguments: -d Print lots of debug logging output on stderr. -n Print the names of the files that would have been removed on stdout (performs a dry run). -V --version Print the pg_archivecleanup version and exit. -x *extension* Provide an extension that will be stripped from all file names before deciding if they should be deleted. This is typically useful for cleaning up archives that have been compressed during storage, and therefore have had an extension added by the compression program. For example: -x .gz. -? --help Show help about pg_archivecleanup command line arguments, and exit.