Just noticed - it looks Phoenix wallet have such feature, called “drain wallet”, where you enter onchain Bitcoin address.
Although that could be done using LNURL or BOLT12 over Lightning too, just try amounts one by one, reducing by 1sat each time until your withdraw amount is total wallet balance minus fees.