PostgreSQL: WAL files on server are not deleted

Solution 1:

Did you restart after changing the setting? Try

show wal_level;

and

show archive_mode;

at psql prompt

and try

show config_file;

to see which config file is used by the server