Currently you have to select a message in the trash, Ctrl+A to select all messages and then click delete.
A much easier way would be to right click on the trash icon and select "delete all messages" or "empty trash".
Many programs have been able to do this for many years. Why not Thunderbird?