The "delete user" action must already confirmed by typing the user name in an input field. This specific place uses an offcanvas (see administration-page.component.html).
This offcanvas should be extracted into a separate component which should then also be used when deleting an API key.