How do I determine which those are? Just based on the timestamp if the WAL file, such that I could do something like take the timestamp of the last basebackup and delete all WAL files older than that? Or is there a better way?
there's a tool, barman, I've never used but its supposed to greatly simplify this whole process...