How does WAL work with remote_write?

I read prometheus.remote_write | Grafana Agent documentation , and want to clarify something. When data is sent off to the remote prometheus, is the data cleared from the WAL? Or does it stick around until the WAL is cleared (truncate_frequency, default 2h)?

Assuming latest version of alloy helm chart