Error deleting tenant

Tried to delete an tenant (Carrier Plus 3.2.1-1 Asterisk 18.10.0-1)
Tried multiple times, always the same error.

Exception: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction With Query: delete from asterisk.cdr where tenant = ? at file /usr/share/vitalpbx/www/includes/db.php on line 0

After logout and login the tenant was gone, so despite the errors the tenant has been deleted.