You can use the Management API v2 Delete a user endpoint:
If you are using the Node Management API client, you can delete a user as follows:
management.users.delete({ id: USER_ID }, function (err) {
if (err) {
// Handle error.
}
// User deleted.
});