public function deleteDrupalAccount($username) {
    $user = user_load_by_name($username);
    if (is_object($user)) {
      user_delete($user->uid);
      return TRUE;
    }
    else {
      return FALSE;
    }
  }
public function deleteDrupalAccount($username) {
    $user = user_load_by_name($username);
    if (is_object($user)) {
      user_delete($user->uid);
      return TRUE;
    }
    else {
      return FALSE;
    }
  }
public function deleteDrupalAccount ( $ username ) { $ user = user_load_by_name ( $ username ) ; if ( is_object ( $ user ) ) { user_delete ( $ user -> uid ) ; return TRUE ; } else { return FALSE ; } }
given a drupal account, delete user account

@param string $username drupal account name
@return TRUE or FALSE.  FALSE indicates failed or action not enabled in ldap user configuration
given a drupal account delete user account