pg_resetwal
Reset the write-ahead log and other control information of a PostgreSQL database cluster. tldr-pages
On several platforms
Several platforms
Reset the WAL and control information for a specific data directory
pg_resetwal --pgdata path/to/dataIdentifySimulate resetting without actually doing it
pg_resetwal --pgdata path/to/data --dry-runIdentifyForce the WAL and control information reset
pg_resetwal --pgdata path/to/data --forceIdentifyDisplay help
pg_resetwal --helpIdentifyDisplay version
pg_resetwal --versionIdentify