PostgreSQL 10 Clean Up After Restore I run postgres server (10.6) on my pc just for some custom programs. Problem is every time I restore a backup file of 600mb - the pg_wal directory increases in size for 600mb. Is there a way to easily restore + get rid of the wal files?

I have read about pg_archivecleanup utility but I don't think it helps in my case.

EDIT:
Alternatively, is it possible at all to restore without recreating wal files as I don't need them. What will be the config entries for this.
The files should go away on their own after a checkpoint or two (if there is little activity, it might take longer for the files to go away.  If they were renamed already in anticipation of being recycled back when the server was very active, they won't go away until they get re-used).  If you don't want it to use up to 1GB of WAL, then you should lower "max_wal_size".  Otherwise, it might do what you gave it permission to do.