The magic flush command is:
ttn-lw-cli dev set $application $device --unset mac-state.pending-application-downlink