Sorry for the late response. I have researched another way in the meanwhile.
According to the manual there is occ trashbin:cleanup command.
It probably does something similar as you described but it one step and is easy to use.
Edit: I still wonder, because I think it should either be possible to use the UI or to display at least some meaningful message to the user.