/** * Delete the user who owns a given username. * * @param Zend_Gdata_Gapps $gapps The service object to use for communicating with the Google * Apps server. * @param boolean $html True if output should be formatted for display in a web browser. * @param string $username The username which should be deleted. * @return void */ function deleteUser($gapps, $html, $username) { if ($html) { echo "<h2>Delete User</h2>\n"; } $gapps->deleteUser($username); if ($html) { echo "<p>Done.</p>\n"; } }
public function delete_user_account($username) { $client = Zend_Gdata_ClientLogin::getHttpClient($this->email, $this->password, Zend_Gdata_Gapps::AUTH_SERVICE_NAME); $gdata = new Zend_Gdata_Gapps($client, $this->domain); $gdata->deleteUser($username); }