Should API Key plugin hook removeUser?

Using the apikey plugin, if I try to remove a user with the removeUser endpoint, it fails if the user has an active API key (foreign key constraint failed). Is that expected? Do I need to manually delete the API key myself in a hook or something else first?
Was this page helpful?