NetUserDel or Net32UserDel

The NetUserDel API removes an account from the user account subsystem (UAS) database, ending all access to the resources in the system. Deleting an account also removes it from groups in the system.