Depending on the version of Postgres you're using, it's possible your replicatoin is done using "replication slots". If you don't have a client streaming from a replication slot anymore, you can drop the slot. Here are some useful queries:
Get disk usage per replication slot (for Postgres 9.6):
SELECT
redo_location,
slot_name,restart_lsn,
round((redo_location-restart_lsn) / 1024 / 1024 / 1024, 2) AS GB_behind
FROM
pg_control_checkpoint(),
pg_replication_slots;
Get disk usage per replication slot (for Postgres 10+):
SELECT redo_lsn,
slot_name,
restart_lsn,
round((redo_lsn-restart_lsn) / 1024 / 1024 / 1024, 2) AS GB_behind
FROM pg_control_checkpoint(),
pg_replication_slots;
Drop replication slot:
select pg_drop_replication_slot('slot_name');
References:
Specifies the minimum number of past log file segments kept in the pg_xlog directory. I believe it is a lower bound, not an upper bound. - AJ Slater