Login the the PBX using SSH.
On the command line.
asterisk=# select * from person;
id | accountid | familyname | firstname | folder
------+-----------+---------------------+-----------------------------+--------
accountid = 0;
DELETE 323